/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorTest.java | 72 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 …]
|
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()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStore_FilesTest.java | 191 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 …]
|
D | ProviderTestUtils.java | 50 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString()); in executeShellCommand() local 52 try (InputStream in = new FileInputStream(pfd.getFileDescriptor());) { in executeShellCommand()
|
D | Settings_SystemTest.java | 78 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/ |
D | RemoteSocketFactoryClient.java | 87 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/ |
D | PhoneNumberTest.java | 40 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/ |
D | ProcStatsTest.java | 92 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/ |
D | BitmapFactorySecurityTests.java | 49 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in getResource() local 51 return pfd.getFileDescriptor(); in getResource()
|
D | AslrTest.java | 49 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in readMappingAddress() local 54 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in readMappingAddress()
|
D | MotionEventTest.java | 162 ParcelFileDescriptor pfd = in enableAppOps() local 164 InputStream inputStream = new FileInputStream(pfd.getFileDescriptor()); in enableAppOps()
|
/cts/tests/backup/src/android/backup/cts/ |
D | BaseBackupCtsTest.java | 116 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/ |
D | MyProvider.java | 90 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/ |
D | ContactsContract_Wipe.java | 99 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/ |
D | CaptioningManagerTest.java | 138 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/ |
D | SystemUtil.java | 71 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/ |
D | AppWidgetTest.java | 122 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in runShellCommand() local 128 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in runShellCommand()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | Utils.java | 80 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/ |
D | PhoneAccountTest.java | 313 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/ |
D | SliceManagerTest.java | 174 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in runShellCommand() local 180 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in runShellCommand()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTestCase.java | 160 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/ |
D | BasePackageInstallTest.java | 221 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/ |
D | PasswordTransformationMethodTest.java | 141 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/ |
D | StorageTest.java | 169 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(filesFile, in testVerifyAllocateApi() argument 171 sm.allocateBytes(pfd.getFileDescriptor(), 1 * MB_IN_BYTES); in testVerifyAllocateApi()
|