Searched refs:pipe (Results 1 - 13 of 13) sorted by relevance

/development/tools/emulator/system/libqemu/
H A Dtest_util.h29 int pipe_openSocket( Pipe* pipe, int port );
30 int pipe_openQemuPipe( Pipe* pipe, const char* pipename );
31 int pipe_send( Pipe* pipe, const void* buff, size_t bufflen );
32 int pipe_recv( Pipe* pipe, void* buff, size_t bufflen );
33 void pipe_close( Pipe* pipe );
H A Dtest_util.c45 pipe_openSocket( Pipe* pipe, int port ) argument
50 pipe->socket = -1;
70 pipe->socket = fd;
75 pipe_openQemuPipe( Pipe* pipe, const char* pipename ) argument
77 pipe->socket = qemu_pipe_open(pipename);
78 if (pipe->socket < 0) {
79 fprintf(stderr, "%s: Could not open '%s' pipe: %s\n", __FUNCTION__, pipename, strerror(errno));
86 pipe_send( Pipe* pipe, const void* buff, size_t bufflen ) argument
91 ret = write(pipe->socket, ptr, bufflen);
109 pipe_recv( Pipe* pipe, voi argument
[all...]
H A Dtest_guest_1.c17 /* This program uses a QEMUD pipe to exchange data with a test
42 Pipe pipe[1]; local
47 if (pipe_openSocket(pipe, port) < 0) {
53 if (pipe_openQemuPipe(pipe, PIPE_NAME) < 0) {
54 fprintf(stderr, "Could not open '%s' pipe: %s\n", PIPE_NAME, strerror(errno));
57 printf("Connected to '%s' pipe\n", PIPE_NAME);
70 int ret = pipe_send(pipe, buff, len);
79 ret = pipe_recv(pipe, buff2, len);
98 printf("Closing pipe\n");
99 pipe_close(pipe);
[all...]
H A Dtest_guest_2.c17 /* This program benchmarks a QEMUD pipe to exchange data with a test
40 " -pipe <name> Use pipe name (default: " PIPE_NAME ")\n"
50 Pipe pipe[1]; local
77 } else if (!strcmp(arg, "-pipe")) {
79 fprintf(stderr, "-pipe option needs an argument! See --help for details.\n");
111 fprintf(stderr, "You can't use both -pipe and -tcp at the same time\n");
122 /* Use default pipe name */
135 /* Open the pipe */
137 if (pipe_openSocket(pipe, localPor
[all...]
/development/tools/emulator/opengl/shared/OpenglCodecCommon/
H A DWin32PipeStream.cpp30 * pipe cannot be more than 256 characters long.
40 Win32PipeStream::Win32PipeStream(HANDLE pipe, size_t bufSize) : argument
42 m_pipe(pipe)
54 /* Initialize the pipe name corresponding to a given port
59 snprintf(path, pathlen, "\\\\.\\pipe\\qemu-gles-%d", port_number);
64 * One does not create/bind a pipe, and collect a new handle each
67 * Instead, the server creates a new pipe instance each time it wants
71 * So listen() is a no-op, and accept() really creates the pipe handle.
73 * Also, connect() must create a pipe handle with CreateFile() and
87 HANDLE pipe; local
126 HANDLE pipe; local
[all...]
H A DWin32PipeStream.h35 Win32PipeStream(HANDLE pipe, size_t bufSize);
/development/testrunner/
H A Drun_command.py98 pipe = subprocess.Popen(
105 pid.append(pipe.pid)
107 output = pipe.communicate(input=stdin_input)[0]
115 if pipe.returncode:
117 pipe.returncode))
/development/host/windows/usb/adb_winapi_test/
H A Dadb_winapi_test.cpp267 for (UCHAR pipe = 0; pipe < intr_desc.bNumEndpoints; pipe++) {
268 if (AdbGetEndpointInformation(interface_handle, pipe, &pipe_info)) {
269 printf("\n PIPE %u info:", pipe);
277 printf("\n--- AdbGetEndpointInformation(%u) failure %u", pipe, GetLastError());
/development/ndk/platforms/android-3/include/
H A Dunistd.h111 extern int pipe(int *);
/development/ndk/platforms/android-8/include/
H A Dunistd.h115 extern int pipe(int *);
/development/ndk/platforms/android-9/include/
H A Dunistd.h115 extern int pipe(int *);
/development/tools/emulator/system/camera/
H A DEmulatedCameraDevice.cpp294 if (pipe(thread_fds) == 0) {
/development/ndk/sources/android/native_app_glue/
H A Dandroid_native_app_glue.c58 LOGE("No data on command pipe!");
260 if (pipe(msgpipe)) {
261 LOGE("could not create pipe: %s", strerror(errno));

Completed in 323 milliseconds