/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorTest.java | 52 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 …]
|
D | IParcelFileDescriptorPeer.aidl | 32 void set(in ParcelFileDescriptor pfd); in set() argument
|
D | ParcelFileDescriptorPeer.java | 109 public void set(ParcelFileDescriptor pfd) throws RemoteException { in set() argument 110 mLocal = pfd; in set()
|
D | BundleTest.java | 700 ParcelFileDescriptor pfd = (ParcelFileDescriptor)mBundle.getParcelable("foo"); in testDescribeContents() local 729 ParcelFileDescriptor pfd = (ParcelFileDescriptor)mBundle.getParcelable("foo"); in testHasFileDescriptors() local
|
D | ParcelTest.java | 2413 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/ |
D | MediaStore_FilesTest.java | 189 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 …]
|
D | Settings_SystemTest.java | 78 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/ |
D | PhoneNumberTest.java | 38 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in setDefaultSmsApp() local 41 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setDefaultSmsApp()
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | SystemUtil.java | 60 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/ |
D | TestUtils.java | 59 final ParcelFileDescriptor pfd = in executeStreamedShellCommand() local 61 return new FileInputStream(pfd.getFileDescriptor()); in executeStreamedShellCommand()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TestUtils.java | 106 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/ |
D | Utils.java | 64 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/ |
D | CaptioningManagerTest.java | 126 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/ |
D | NetworkUsageStatsTest.java | 161 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()
|
D | UsageStatsTest.java | 104 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/ |
D | DisplayTest.java | 90 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/ |
D | DateFormatTest.java | 79 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/ |
D | LocationManagerTest.java | 330 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in setAsMoskLocationProvider() local 333 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setAsMoskLocationProvider()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapFactoryTest.java | 264 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()
|
D | BitmapRegionDecoderTest.java | 145 ParcelFileDescriptor pfd = obtainParcelDescriptor(filepath); in testNewInstanceStringAndFileDescriptor() local 146 FileDescriptor fd = pfd.getFileDescriptor(); in testNewInstanceStringAndFileDescriptor()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | BasePrintTest.java | 109 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in getEnabledImes() local 112 new InputStreamReader(new FileInputStream(pfd.getFileDescriptor()))); in getEnabledImes()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverTest.java | 640 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/ |
D | AppWidgetTest.java | 1404 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in executeShellCommandIgnoreOutput() local 1407 Streams.readFully(new FileInputStream(pfd.getFileDescriptor())); in executeShellCommandIgnoreOutput() 1409 IoUtils.closeQuietly(pfd); in executeShellCommandIgnoreOutput()
|