Home
last modified time | relevance | path

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

12

/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorTest.java72 ParcelFileDescriptor pfd = new ParcelFileDescriptor(tempFile); in testConstructorAndOpen() local
73 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testConstructorAndOpen()
125 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); in testFromSocket() local
126 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testFromSocket()
130 pfd.close(); in testFromSocket()
145 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(data, null); in testFromData() local
147 assertFileDescriptorContent(new byte[] { 0, 1, 2, 3 }, pfd); in testFromData()
171 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(data, null); in testFromDataSkip() local
172 assertNotNull(pfd); in testFromDataSkip()
173 FileDescriptor fd = pfd.getFileDescriptor(); in testFromDataSkip()
[all …]
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/tests/tests/provider/src/android/provider/cts/
DMediaStore_FilesTest.java191 ParcelFileDescriptor pfd = mResolver.openFileDescriptor(fileUri, "r"); in testCaseSensitivity() local
192 pfd.close(); in testCaseSensitivity()
200 String realPathFor(ParcelFileDescriptor pfd) { in realPathFor() argument
201 File real = new File("/proc/self/fd/" + pfd.getFd()); in realPathFor()
225 ParcelFileDescriptor pfd = null; in testAccess() local
227 pfd = mResolver.openFileDescriptor(uri, "r"); in testAccess()
228 pfd.close(); in testAccess()
239 pfd = mResolver.openFileDescriptor(uri, "w"); in testAccess()
240 pfd.close(); in testAccess()
247 pfd = mResolver.openFileDescriptor(uri, "r"); in testAccess()
[all …]
DProviderTestUtils.java50 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString()); in executeShellCommand() local
52 try (InputStream in = new FileInputStream(pfd.getFileDescriptor());) { in executeShellCommand()
DSettings_SystemTest.java78 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation().executeShellCommand( in enableAppOps() local
80 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps()
/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/tests/tests/telephony2/src/android/telephony2/cts/
DPhoneNumberTest.java40 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in setDefaultSmsApp() local
43 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setDefaultSmsApp()
/cts/hostsidetests/dumpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/
DProcStatsTest.java92 static List<String> readAll(ParcelFileDescriptor pfd) { in readAll() argument
97 new FileReader(pfd.getFileDescriptor()))) { in readAll()
106 pfd.close(); in readAll()
/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.java49 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in readMappingAddress() local
54 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in readMappingAddress()
DMotionEventTest.java162 ParcelFileDescriptor pfd = in enableAppOps() local
164 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps()
/cts/tests/backup/src/android/backup/cts/
DBaseBackupCtsTest.java116 final ParcelFileDescriptor pfd = in executeStreamedShellCommand() local
118 return new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeStreamedShellCommand()
/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/tests/tests/contactsproviderwipe/src/android/provider/cts/contactsproviderwipe/
DContactsContract_Wipe.java99 static List<String> readAll(ParcelFileDescriptor pfd) { in readAll() argument
104 new FileReader(pfd.getFileDescriptor()))) { in readAll()
113 pfd.close(); in readAll()
/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/common/device-side/util/src/com/android/compatibility/common/util/
DSystemUtil.java71 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand(cmd); in runShellCommand() local
74 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
/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/tests/tests/media/src/android/media/cts/
DUtils.java80 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand( in setAppOps() local
82 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in setAppOps()
/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/slice/src/android/slice/cts/
DSliceManagerTest.java174 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in runShellCommand() local
180 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in runShellCommand()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTestCase.java160 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in runShellCommand() local
166 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in runShellCommand()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DBasePackageInstallTest.java221 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in runShellCommand() local
227 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in runShellCommand()
/cts/tests/tests/text/src/android/text/method/cts/
DPasswordTransformationMethodTest.java141 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(queryStr); in enableAppOps() local
142 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DStorageTest.java169 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(filesFile, in testVerifyAllocateApi() argument
171 sm.allocateBytes(pfd.getFileDescriptor(), 1 * MB_IN_BYTES); in testVerifyAllocateApi()

12