Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 25 of 48) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDumpTestUtils.java50 FileDescriptor[] pipe = Os.pipe(); in dumpService() local
60 new InputStreamReader(new FileInputStream(pipe[0]), in dumpService()
73 runAsShell(android.Manifest.permission.DUMP, () -> ib.dump(pipe[1], args)); in dumpService()
75 ib.dump(pipe[1], args); in dumpService()
77 IoUtils.closeQuietly(pipe[1]); in dumpService()
82 IoUtils.closeQuietly(pipe[0]); in dumpService()
83 if (pipe[1].valid()) IoUtils.closeQuietly(pipe[1]); in dumpService()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DTestUtils.java92 ParcelFileDescriptor[] pipe = null; in getNonSeekableDescriptor() local
94 pipe = ParcelFileDescriptor.createPipe(); in getNonSeekableDescriptor()
95 final ParcelFileDescriptor finalOutputPipe = pipe[1]; in getNonSeekableDescriptor()
117 return pipe[0]; in getNonSeekableDescriptor()
/packages/services/Car/service/src/com/android/car/
DCarTestService.java123 try (NativePipe pipe = NativePipe.newPipe()) { in dumpVhal() argument
124 mICarImpl.dumpVhal(pipe.getFileDescriptor(), options); in dumpVhal()
125 return pipe.getOutput(waitTimeoutMs); in dumpVhal()
211 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in newPipe() local
212 ParcelFileDescriptor reader = new ParcelFileDescriptor(pipe[0]); in newPipe()
213 ParcelFileDescriptor writer = new ParcelFileDescriptor(pipe[1]); in newPipe()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DWriteableArchive.java223 ParcelFileDescriptor[] pipe; in openDocument() local
225 pipe = ParcelFileDescriptor.createReliablePipe(); in openDocument()
231 final ParcelFileDescriptor inputPipe = pipe[0]; in openDocument()
274 FileUtils.closeQuietly(pipe[0]); in openDocument()
275 FileUtils.closeQuietly(pipe[1]); in openDocument()
279 return pipe[1]; in openDocument()
/packages/modules/UprobeStats/src/
DArt.cpp30 FILE *pipe = popen(command.c_str(), "r"); in getMethodOffsetFromOatdump() local
33 while (fgets(buffer, sizeof(buffer), pipe) != NULL) { in getMethodOffsetFromOatdump()
36 pclose(pipe); in getMethodOffsetFromOatdump()
/packages/modules/Virtualization/vmbase/example/tests/
Dtest.rs109 let (mut log_reader, log_writer) = pipe()?; in test_run_example_vm()
137 let (reader, writer) = pipe()?; in android_log_fd()
142 fn pipe() -> io::Result<(File, File)> { in pipe() function
143 let (reader_fd, writer_fd) = nix::unistd::pipe()?; in pipe()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpCoverArtProvider.java101 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in getImageDescriptor() local
107 new ParcelFileDescriptor.AutoCloseOutputStream(pipe[1]); in getImageDescriptor()
117 return pipe[0]; in getImageDescriptor()
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java209 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in openPipeHelper() local
214 func.writeDataToPipe(pipe[1], args); in openPipeHelper()
217 Utils.closeSilently(pipe[1]); in openPipeHelper()
222 return pipe[0]; in openPipeHelper()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DEventLogTags.logtags21 # @param enabled_sources A pipe-separated list of source names, ordered by source ranking.
29 # @param A pipe-separated list of suggestion log names.
31 # @param queried_sources A pipe-separated list of the sources that were queried to produce
/packages/apps/Nfc/nci/jni/
DHciEventManager.cpp145 eventData->rcvd_evt.pipe, eventData->rcvd_evt.evt_len); in nfaHciCallback()
148 if (eventData->rcvd_evt.pipe == sEsePipe) { in nfaHciCallback()
150 } else if (eventData->rcvd_evt.pipe == sSimPipe) { in nfaHciCallback()
/packages/modules/DnsResolver/
DREADME-DoT.md51 "reliable datagram pipe" (`socketpair()` in `SOCK_SEQPACKET` mode).
52 The query method writes a struct (containing a pointer to the query) to the pipe
54 reads off the other end of the pipe. The pipe doesn't actually have a queue "inside";
58 We need to pass messages between threads using a pipe, and not a condition variable
/packages/modules/Virtualization/java/framework/src/android/system/virtualmachine/
DVirtualMachine.java1179 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in run() local
1180 mTeeConsoleOutReader = pipe[0]; in run()
1181 mTeeConsoleOutWriter = pipe[1]; in run()
1254 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in createVmOutputPipes() local
1255 mConsoleOutReader = pipe[0]; in createVmOutputPipes()
1256 mConsoleOutWriter = pipe[1]; in createVmOutputPipes()
1260 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in createVmOutputPipes() local
1261 mLogReader = pipe[0]; in createVmOutputPipes()
1262 mLogWriter = pipe[1]; in createVmOutputPipes()
1280 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in createVmInputPipes() local
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarBugreportManagerTest.java252 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in create() local
257 return new PipedTempFile(pipe[0], pipe[1], f); in create()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DLauncherModelHelper.java178 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in setupDefaultLayoutProvider()
179 AutoCloseOutputStream outputStream = new AutoCloseOutputStream(pipe[1]); in setupDefaultLayoutProvider()
185 return pipe[0]; in setupDefaultLayoutProvider()
/packages/modules/Bluetooth/floss/pandora/floss/
Dcmd_utils.py50 self._pipe = list(os.pipe())
69 self._pipe = list(os.pipe())
/packages/modules/StatsD/framework/java/android/app/
DStatsManager.java944 ParcelFileDescriptor[] pipe; in getDataWithFd() local
946 pipe = ParcelFileDescriptor.createPipe(); in getDataWithFd()
952 ParcelFileDescriptor readFd = pipe[0]; in getDataWithFd()
953 ParcelFileDescriptor writeFd = pipe[1]; in getDataWithFd()
/packages/services/Mtp/src/com/android/mtp/
DMtpDocumentsProvider.java394 final ParcelFileDescriptor[] pipe; in createDocument() local
431 pipe = ParcelFileDescriptor.createReliablePipe(); in createDocument()
435 pipe[0].close(); // 0 bytes for a new document. in createDocument()
464 parentId.mDeviceId, infoUniqueName, pipe[1]); in createDocument()
472 pipe[1].close(); in createDocument()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java455 ParcelFileDescriptor[] pipe; in startWrite() local
457 pipe = ParcelFileDescriptor.createReliablePipe(); in startWrite()
461 final ParcelFileDescriptor readPipe = pipe[0]; in startWrite()
462 final ParcelFileDescriptor writePipe = pipe[1]; in startWrite()
508 private void closePipeWithErrorSilently(ParcelFileDescriptor pipe, String error) { in closePipeWithErrorSilently() argument
510 pipe.closeWithError(error); in closePipeWithErrorSilently()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/
DOsAccess.java61 public abstract ParcelFileDescriptor[] pipe() throws IOException; in pipe() method in OsAccess
/packages/modules/adb/fastdeploy/deployagent/src/com/android/fastdeploy/
DPatchUtils.java65 static void pipe(final InputStream in, final OutputStream out, final byte[] buffer, in pipe() method in PatchUtils
DDeployAgent.java292 PatchUtils.pipe(patchData, outputStream, buffer, newDataLen); in writePatchedDataToStream()
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsManagerService.java863 ParcelFileDescriptor[] pipe; in getDataFdFromStatsd() local
865 pipe = ParcelFileDescriptor.createPipe(); in getDataFdFromStatsd()
871 ParcelFileDescriptor readFd = pipe[0]; in getDataFdFromStatsd()
872 ParcelFileDescriptor writeFd = pipe[1]; in getDataFdFromStatsd()
/packages/services/Car/cpp/libsysfsmonitor/src/
DSysfsMonitor.cpp50 pipe(mPipefd); in init()
/packages/modules/adb/
Dtest_adb.py137 read_pipe, write_pipe = os.pipe()
204 def _read_pipe_and_set_event(pipe, event): argument
206 pipe.read()
/packages/modules/Virtualization/service_vm/manager/src/
Dlib.rs294 let (reader_fd, writer_fd) = nix::unistd::pipe()?; in android_log_fd()

12