Home
last modified time | relevance | path

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

/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorTest.java52 ParcelFileDescriptor pfd = new ParcelFileDescriptor(tempFile); in testConstructorAndOpen() local
53 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testConstructorAndOpen()
104 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); in testFromSocket() local
105 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testFromSocket()
109 pfd.close(); in testFromSocket()
125 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(data, null); in testFromData() local
127 assertFileDescriptorContent(new byte[] { 0, 1, 2, 3 }, pfd); in testFromData()
150 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(data, null); in testFromDataSkip() local
151 assertNotNull(pfd); in testFromDataSkip()
152 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()
DBundleTest.java700 ParcelFileDescriptor pfd = (ParcelFileDescriptor)mBundle.getParcelable("foo"); in testDescribeContents() local
729 ParcelFileDescriptor pfd = (ParcelFileDescriptor)mBundle.getParcelable("foo"); in testHasFileDescriptors() local
DParcelTest.java2413 ParcelFileDescriptor pfd;
2416 pfd = p.readFileDescriptor();
2417 assertNull(pfd);
2423 pfd = p.readFileDescriptor();
2424 assertNotNull(pfd);
2425 assertNotNull(pfd.getFileDescriptor());
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_FilesTest.java189 ParcelFileDescriptor pfd = mResolver.openFileDescriptor(fileUri, "r"); in testCaseSensitivity() local
190 pfd.close(); in testCaseSensitivity()
198 String realPathFor(ParcelFileDescriptor pfd) { in realPathFor() argument
199 File real = new File("/proc/self/fd/" + pfd.getFd()); in realPathFor()
223 ParcelFileDescriptor pfd = null; in testAccess() local
225 pfd = mResolver.openFileDescriptor(uri, "r"); in testAccess()
226 pfd.close(); in testAccess()
237 pfd = mResolver.openFileDescriptor(uri, "w"); in testAccess()
238 pfd.close(); in testAccess()
245 pfd = mResolver.openFileDescriptor(uri, "r"); in testAccess()
[all …]
DSettings_SystemTest.java78 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation().executeShellCommand( in enableAppOps() local
80 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps()
/cts/tests/tests/telephony2/src/android/telephony2/cts/
DPhoneNumberTest.java38 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in setDefaultSmsApp() local
41 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setDefaultSmsApp()
/cts/libs/deviceutil/src/android/cts/util/
DSystemUtil.java60 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand(cmd); in runShellCommand() local
63 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
/cts/tests/tests/calllog/src/android/calllog/cts/
DTestUtils.java59 final ParcelFileDescriptor pfd = in executeStreamedShellCommand() local
61 return new FileInputStream(pfd.getFileDescriptor()); in executeStreamedShellCommand()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java106 final ParcelFileDescriptor pfd = in executeShellCommand() local
109 try (InputStream in = new FileInputStream(pfd.getFileDescriptor())) { in executeShellCommand()
121 closeQuietly(pfd); in executeShellCommand()
/cts/tests/tests/media/src/android/media/cts/
DUtils.java64 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand( in setAppOps() local
66 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in setAppOps()
/cts/tests/tests/accessibility/src/android/view/accessibility/cts/
DCaptioningManagerTest.java126 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(cmd); in execShellCommand() local
127 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in execShellCommand()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java161 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in setAppOpsMode() local
164 Streams.readFully(new FileInputStream(pfd.getFileDescriptor())); in setAppOpsMode()
166 IoUtils.closeQuietly(pfd.getFileDescriptor()); in setAppOpsMode()
174 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in getAppOpsMode() local
177 result = convertStreamToString(new FileInputStream(pfd.getFileDescriptor())); in getAppOpsMode()
179 IoUtils.closeQuietly(pfd.getFileDescriptor()); in getAppOpsMode()
DUsageStatsTest.java104 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in setAppOpsMode() local
107 Streams.readFully(new FileInputStream(pfd.getFileDescriptor())); in setAppOpsMode()
109 IoUtils.closeQuietly(pfd.getFileDescriptor()); in setAppOpsMode()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java90 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation().executeShellCommand( in enableAppOps() local
92 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps()
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java79 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation().executeShellCommand( in enableAppOps() local
81 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps()
/cts/tests/tests/location2/src/android/location2/cts/
DLocationManagerTest.java330 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in setAsMoskLocationProvider() local
333 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setAsMoskLocationProvider()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java264 ParcelFileDescriptor pfd = obtainParcelDescriptor(obtainPath()); in testDecodeFileDescriptor1() local
265 FileDescriptor input = pfd.getFileDescriptor(); in testDecodeFileDescriptor1()
277 ParcelFileDescriptor pfd = obtainParcelDescriptor(obtainPath()); in testDecodeFileDescriptor2() local
278 FileDescriptor input = pfd.getFileDescriptor(); in testDecodeFileDescriptor2()
DBitmapRegionDecoderTest.java145 ParcelFileDescriptor pfd = obtainParcelDescriptor(filepath); in testNewInstanceStringAndFileDescriptor() local
146 FileDescriptor fd = pfd.getFileDescriptor(); in testNewInstanceStringAndFileDescriptor()
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java109 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in getEnabledImes() local
112 new InputStreamReader(new FileInputStream(pfd.getFileDescriptor()))); in getEnabledImes()
/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java640 ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(uri, "w"); in testOpenFileDescriptor() local
641 assertNotNull(pfd); in testOpenFileDescriptor()
642 pfd.close(); in testOpenFileDescriptor()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java1404 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in executeShellCommandIgnoreOutput() local
1407 Streams.readFully(new FileInputStream(pfd.getFileDescriptor())); in executeShellCommandIgnoreOutput()
1409 IoUtils.closeQuietly(pfd); in executeShellCommandIgnoreOutput()