Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 25 of 60) 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()
DParcelFileDescriptorPeer.java109 public void set(ParcelFileDescriptor pfd) throws RemoteException { in set() argument
110 mLocal = pfd; in set()
DIParcelFileDescriptorPeer.aidl32 void set(in ParcelFileDescriptor pfd); in set() argument
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java208 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/
DTelephonyUtils.java74 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/
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()
DDumpOnFailureRule.java74 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/
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/tests/tests/provider/src/android/provider/cts/
DMediaStore_Video_MediaTest.java236 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/
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/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/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/net/src/android/net/cts/
DNetworkWatchlistTest.java133 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/
DAppWidgetTest.java122 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/
DSystemUtil.java89 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/
DSystemUtil.java75 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/
DPhoneAccountTest.java313 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/
DSyncAdapterSettingsTest.java70 ParcelFileDescriptor pfd =
72 return new ParcelFileDescriptor.AutoCloseInputStream(pfd);

123