Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 25 of 56) sorted by relevance

123

/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorTest.java74 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 …]
DParcelFileDescriptor_AutoCloseOutputStreamTest.java48 ParcelFileDescriptor pfd = ParcelFileDescriptorTest.makeParcelFileDescriptor(getContext()); in testCloseOrdering() local
50 try (FileOutputStream out = new AutoCloseOutputStream(pfd)) { in testCloseOrdering()
DIParcelFileDescriptorPeer.aidl32 void set(in ParcelFileDescriptor pfd); in set() argument
DParcelFileDescriptorPeer.java109 public void set(ParcelFileDescriptor pfd) throws RemoteException { in set() argument
110 mLocal = pfd; in set()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java204 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaNone() argument
206 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaNone() argument
210 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaNone() argument
241 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaRead() argument
243 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaRead() argument
245 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaRead() argument
276 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaWrite() argument
278 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaWrite() argument
281 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaWrite() argument
284 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaWrite() argument
[all …]
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DRemoteSocketFactoryClient.java87 ParcelFileDescriptor pfd = mService.openSocketFd(host, port, timeoutMs); in openSocketFd() local
88 FileDescriptor fd = Os.dup(pfd.getFileDescriptor()); in openSocketFd()
89 pfd.close(); in openSocketFd()
/cts/hostsidetests/dumpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/
DProcStatsTest.java91 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/
DPhoneNumberTest.java45 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in setDefaultSmsApp() local
48 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setDefaultSmsApp()
/cts/tests/tests/security/src/android/security/cts/
DBitmapFactorySecurityTests.java49 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in getResource() local
51 return pfd.getFileDescriptor(); in getResource()
DAslrTest.java50 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in readMappingAddress() local
55 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in readMappingAddress()
/cts/tests/backup/src/android/backup/cts/
DBaseBackupCtsTest.java104 final ParcelFileDescriptor pfd = in executeInstrumentationShellCommand() local
106 return new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeInstrumentationShellCommand()
/cts/tests/tests/contactsproviderwipe/src/android/provider/cts/contactsproviderwipe/
DContactsContract_Wipe.java102 static List<String> readAll(ParcelFileDescriptor pfd) { in readAll() argument
107 new FileReader(pfd.getFileDescriptor()))) { in readAll()
116 pfd.close(); in readAll()
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DMyProvider.java90 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/
DOtherSoundsSettingsTest.java62 ParcelFileDescriptor pfd = in setUp()
64 return new ParcelFileDescriptor.AutoCloseInputStream(pfd); in setUp()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DCaptioningManagerTest.java138 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(cmd); in execShellCommand() local
139 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in execShellCommand()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DUtils.java173 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in getProtoDump() local
177 try (FileInputStream is = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in getProtoDump()
/cts/tests/tests/net/src/android/net/cts/
DNetworkWatchlistTest.java131 private void pipeResourceToFileDescriptor(String res, ParcelFileDescriptor pfd) in pipeResourceToFileDescriptor() argument
134 FileOutputStream fdStream = new ParcelFileDescriptor.AutoCloseOutputStream(pfd); in pipeResourceToFileDescriptor()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Video_MediaTest.java233 try (ParcelFileDescriptor pfd = mContentResolver.openFile(publishUri, "r", null); in testLocationRedaction() argument
235 mmr.setDataSource(pfd.getFileDescriptor()); in testLocationRedaction()
249 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(originalUri, "r")) { in testLocationRedaction() argument
256 try (ParcelFileDescriptor pfd = mContentResolver.openFile(publishUri, "r", null); in testLocationRedaction() argument
258 mmr.setDataSource(pfd.getFileDescriptor()); in testLocationRedaction()
272 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(originalUri, "r")) { in testLocationRedaction() argument
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/
DAppWidgetTest.java122 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in runShellCommand() local
128 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in runShellCommand()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DSystemUtil.java75 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand(cmd); in runShellCommand() local
78 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java89 ParcelFileDescriptor pfd = automation.executeShellCommand(cmd); in runShellCommand() local
92 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
/cts/hostsidetests/backup/SyncAdapterSettingsApp/src/android/cts/backup/syncadaptersettingsapp/
DSyncAdapterSettingsTest.java70 ParcelFileDescriptor pfd =
72 return new ParcelFileDescriptor.AutoCloseInputStream(pfd);
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPhoneAccountTest.java313 final ParcelFileDescriptor pfd = in executeShellCommand() local
316 try (InputStream in = new FileInputStream(pfd.getFileDescriptor())) { in executeShellCommand()
328 pfd.close(); in executeShellCommand()
/cts/tests/tests/media/src/android/media/cts/
DUtils.java101 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand( in setAppOps() local
103 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in setAppOps()
/cts/tests/tests/slice/src/android/slice/cts/
DSliceManagerTest.java175 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in runShellCommand() local
181 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in runShellCommand()

123