Home
last modified time | relevance | path

Searched refs:pipeFd (Results 1 - 25 of 31) sorted by relevance

12

/foundation/graphic/graphic_surface/surface/test/systemtest/
H A Dnative_window_test.cpp38 int32_t ThreadNativeWindowProcess001(int32_t *pipeFd, sptr<IBufferProducer> producer);
42 int32_t ThreadNativeWindowProcess002(int32_t *pipeFd, sptr<IBufferProducer> producer);
46 int32_t ThreadNativeWindowProcess003(int32_t *pipeFd, uint64_t uniqueId);
50 int32_t ThreadNativeWindowProcess004(int32_t *pipeFd, uint64_t uniqueId);
55 int32_t ThreadNativeWindowProcess005(int32_t *pipeFd, uint64_t uniqueId);
59 int32_t ThreadNativeWindowProcess006(int32_t *pipeFd, uint64_t uniqueId);
62 int32_t ThreadNativeWindowProcess007(int32_t *pipeFd, sptr<IBufferProducer> producer, uint64_t *uniqueId);
66 int32_t ThreadNativeWindowProcess008(int32_t *pipeFd, uint64_t uniqueId);
122 int32_t NativeWindowTest::ThreadNativeWindowProcess001(int32_t *pipeFd, sptr<IBufferProducer> producer) in ThreadNativeWindowProcess001() argument
129 write(pipeFd[ in ThreadNativeWindowProcess001()
143 int32_t pipeFd[2] = {}; HWTEST_F() local
241 ThreadNativeWindowProcess002(int32_t *pipeFd, sptr<IBufferProducer> producer) ThreadNativeWindowProcess002() argument
262 int32_t pipeFd[2] = {}; HWTEST_F() local
344 ThreadNativeWindowProcess003(int32_t *pipeFd, uint64_t uniqueId) ThreadNativeWindowProcess003() argument
365 int32_t pipeFd[2] = {}; HWTEST_F() local
489 ThreadNativeWindowProcess004(int32_t *pipeFd, uint64_t uniqueId) ThreadNativeWindowProcess004() argument
518 int32_t pipeFd[2] = {}; HWTEST_F() local
628 ThreadNativeWindowProcess005(int32_t *pipeFd, uint64_t uniqueId) ThreadNativeWindowProcess005() argument
657 int32_t pipeFd[2] = {}; HWTEST_F() local
708 ThreadNativeWindowProcess006(int32_t *pipeFd, uint64_t uniqueId) ThreadNativeWindowProcess006() argument
747 int32_t pipeFd[2] = {}; HWTEST_F() local
837 ThreadNativeWindowProcess007(int32_t *pipeFd, sptr<IBufferProducer> producer, uint64_t *uniqueId) ThreadNativeWindowProcess007() argument
865 int32_t pipeFd[2] = {}; HWTEST_F() local
987 ThreadNativeWindowProcess008(int32_t *pipeFd, uint64_t uniqueId) ThreadNativeWindowProcess008() argument
1026 int32_t pipeFd[2] = {}; HWTEST_F() local
[all...]
H A Dsurface_ipc_with_pts_test.cpp43 static inline int32_t pipeFd[2] = {}; member in OHOS::Rosen::SurfaceIPCWithPTSTest
140 pipe(pipeFd); in ChildProcessMain()
148 read(pipeFd[0], &bufferNum, sizeof(bufferNum)); in ChildProcessMain()
172 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
181 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
194 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
200 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
202 read(pipeFd[0], &data, sizeof(data)); in ChildProcessMain()
209 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
213 close(pipeFd[ in ChildProcessMain()
[all...]
H A Dsurface_ipc_with_invaild_pts_test.cpp43 static inline int32_t pipeFd[2] = {}; member in OHOS::Rosen::SurfaceIPCWithInvalidPTSTest
102 pipe(pipeFd); in ChildProcessMain()
110 read(pipeFd[0], &bufferNum, sizeof(bufferNum)); in ChildProcessMain()
135 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
149 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
155 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
157 read(pipeFd[0], &data, sizeof(data)); in ChildProcessMain()
164 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
168 close(pipeFd[0]); in ChildProcessMain()
169 close(pipeFd[ in ChildProcessMain()
[all...]
H A Dsurface_ipc_test.cpp40 static inline int32_t pipeFd[2] = {}; member in OHOS::Rosen::SurfaceIPCTest
129 pipe(pipeFd); in ChildProcessMain()
136 read(pipeFd[0], &data, sizeof(data)); in ChildProcessMain()
145 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
151 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
157 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
159 read(pipeFd[0], &data, sizeof(data)); in ChildProcessMain()
166 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
170 close(pipeFd[0]); in ChildProcessMain()
171 close(pipeFd[ in ChildProcessMain()
[all...]
H A Dnative_window_buffer_test.cpp42 static inline int32_t pipeFd[2] = {}; member in OHOS::Rosen::NativeWindowBufferTest
160 pipe(pipeFd); in ChildProcessMain()
167 read(pipeFd[0], &data, sizeof(data)); in ChildProcessMain()
181 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
187 write(pipeFd[1], &data, sizeof(data)); in ChildProcessMain()
189 read(pipeFd[0], &data, sizeof(data)); in ChildProcessMain()
190 close(pipeFd[0]); in ChildProcessMain()
191 close(pipeFd[1]); in ChildProcessMain()
236 write(pipeFd[1], &data, sizeof(data)); in HWTEST_F()
238 read(pipeFd[ in HWTEST_F()
[all...]
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/
H A Dsys_event.c33 CloseDesc(node->pipeFd[PIPE_OUT]); in CloseNodePipe()
34 CloseDesc(node->pipeFd[PIPE_IN]); in CloseNodePipe()
45 ret = (int32_t)recvfrom(node->pipeFd[PIPE_OUT], &event, sizeof(event), 0, NULL, NULL); in EventProcessHandle()
47 ret = (int32_t)read(node->pipeFd[PIPE_OUT], &event, sizeof(event)); in EventProcessHandle()
78 ret = (int32_t)sendto(node->pipeFd[PIPE_IN], &event, sizeof(event), 0, NULL, 0); in PostEvent()
80 ret = (int32_t)write(node->pipeFd[PIPE_IN], &event, sizeof(event)); in PostEvent()
108 ret = (int32_t)recvfrom(node->pipeFd[PIPE_OUT], &event, sizeof(event), 0, NULL, NULL); in ClearEvent()
110 ret = (int32_t)read(node->pipeFd[PIPE_OUT], &event, sizeof(event)); in ClearEvent()
131 node->pipeFd[PIPE_OUT] = fds.recvFd; in CreateNonBlockPipe()
132 node->pipeFd[PIPE_I in CreateNonBlockPipe()
[all...]
/foundation/filemanagement/app_file_service/utils/src/b_process/
H A Db_process.cpp86 int pipeFd[2]; in ExecuteCmd() local
87 if (pipe(pipeFd) < 0) { in ExecuteCmd()
95 close(pipeFd[0]); in ExecuteCmd()
96 UniqueFd fd(pipeFd[1]); in ExecuteCmd()
97 if (dup2(pipeFd[1], STDERR_FILENO) == -1) { in ExecuteCmd()
103 UniqueFd fd(pipeFd[0]); in ExecuteCmd()
104 close(pipeFd[1]); in ExecuteCmd()
108 unique_ptr<FILE, function<void(FILE *)>> pipeStream {fdopen(pipeFd[0], "r"), fclose}; in ExecuteCmd()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/
H A Dsys_event.c33 CloseDesc(node->pipeFd[PIPE_OUT]); in CloseNodePipe()
34 CloseDesc(node->pipeFd[PIPE_IN]); in CloseNodePipe()
44 ret = (int32_t)read(node->pipeFd[PIPE_OUT], &event, sizeof(event)); in EventProcessHandle()
74 ret = (int32_t)write(node->pipeFd[PIPE_IN], &event, sizeof(event)); in PostEvent()
99 ret = (int32_t)read(node->pipeFd[PIPE_OUT], &event, sizeof(event)); in ClearEvent()
115 if (pipe(node->pipeFd) < 0) { in CreateNonBlockPipe()
121 flags = fcntl(node->pipeFd[i], F_GETFL, 0); in CreateNonBlockPipe()
129 ret = fcntl(node->pipeFd[i], F_SETFL, flags); in CreateNonBlockPipe()
164 node->task.taskfd = node->pipeFd[PIPE_OUT]; in EventModuleInit()
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/test/systemtest/
H A Dvsync_ltpo_test.cpp78 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSyncLTPOTest
157 close(pipeFd[1]); in Process1()
164 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
179 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
213 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
227 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
261 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
275 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
309 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
323 read(pipeFd[ in Process1()
[all...]
H A Dvsync_callbackeveryframe_test.cpp56 static inline int pipeFd[2] = {}; member in OHOS::Rosen::SetVsyncCallBackForEveryFrameTest
103 close(pipeFd[1]); in Process1()
107 read(pipeFd[0], buf, sizeof(buf)); in Process1()
109 close(pipeFd[0]); in Process1()
116 close(pipeFd[0]); in Process2()
156 if (pipe(pipeFd) < 0) { in HWTEST_F()
H A Dvsync_test.cpp57 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSyncTest
104 close(pipeFd[1]); in Process1()
108 read(pipeFd[0], buf, sizeof(buf)); in Process1()
110 close(pipeFd[0]); in Process1()
117 close(pipeFd[0]); in Process2()
150 if (pipe(pipeFd) < 0) { in HWTEST_F()
H A Dvsync_multicallback_test.cpp68 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSyncMultiCallbackTest
115 close(pipeFd[1]); in Process1()
119 read(pipeFd[0], buf, sizeof(buf)); in Process1()
121 close(pipeFd[0]); in Process1()
128 close(pipeFd[0]); in Process2()
168 if (pipe(pipeFd) < 0) { in HWTEST_F()
H A Dvsync_setvsyncrate_test.cpp58 static inline int pipeFd[2] = {}; member in OHOS::Rosen::SetVsyncRateTest
105 close(pipeFd[1]); in Process1()
109 read(pipeFd[0], buf, sizeof(buf)); in Process1()
111 close(pipeFd[0]); in Process1()
118 close(pipeFd[0]); in Process2()
158 if (pipe(pipeFd) < 0) { in HWTEST_F()
H A Dvsync_120to30_test.cpp78 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync120To30Test
157 close(pipeFd[1]); in Process1()
181 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
195 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
229 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
243 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
276 read(pipeFd[0], buf, sizeof(buf)); in Process1()
279 close(pipeFd[0]); in Process1()
286 close(pipeFd[0]); in Process2()
314 write(pipeFd[ in Process2()
[all...]
H A Dvsync_90to30_test.cpp78 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync90To30Test
157 close(pipeFd[1]); in Process1()
181 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
195 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
229 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
243 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
276 read(pipeFd[0], buf, sizeof(buf)); in Process1()
279 close(pipeFd[0]); in Process1()
286 close(pipeFd[0]); in Process2()
314 write(pipeFd[ in Process2()
[all...]
H A Dvsync_90to60_test.cpp78 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync90To60Test
157 close(pipeFd[1]); in Process1()
181 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
195 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
229 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
243 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
276 read(pipeFd[0], buf, sizeof(buf)); in Process1()
279 close(pipeFd[0]); in Process1()
286 close(pipeFd[0]); in Process2()
314 write(pipeFd[ in Process2()
[all...]
H A Dvsync_30to120_test.cpp85 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync30To120Test
164 close(pipeFd[1]); in Process1()
188 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
202 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
236 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
252 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
285 read(pipeFd[0], buf, sizeof(buf)); in Process1()
288 close(pipeFd[0]); in Process1()
295 close(pipeFd[0]); in Process2()
323 write(pipeFd[ in Process2()
[all...]
H A Dvsync_30to60_test.cpp85 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync30To60Test
164 close(pipeFd[1]); in Process1()
188 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
202 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
236 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
252 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
285 read(pipeFd[0], buf, sizeof(buf)); in Process1()
288 close(pipeFd[0]); in Process1()
295 close(pipeFd[0]); in Process2()
323 write(pipeFd[ in Process2()
[all...]
H A Dvsync_30to90_test.cpp85 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync30To90Test
164 close(pipeFd[1]); in Process1()
188 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
202 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
236 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
252 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
285 read(pipeFd[0], buf, sizeof(buf)); in Process1()
288 close(pipeFd[0]); in Process1()
295 close(pipeFd[0]); in Process2()
323 write(pipeFd[ in Process2()
[all...]
H A Dvsync_60to120_test.cpp85 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync60To120Test
164 close(pipeFd[1]); in Process1()
188 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
202 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
236 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
252 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
285 read(pipeFd[0], buf, sizeof(buf)); in Process1()
288 close(pipeFd[0]); in Process1()
295 close(pipeFd[0]); in Process2()
323 write(pipeFd[ in Process2()
[all...]
H A Dvsync_90to120_test.cpp85 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync90To120Test
164 close(pipeFd[1]); in Process1()
188 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
202 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
236 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
252 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
285 read(pipeFd[0], buf, sizeof(buf)); in Process1()
288 close(pipeFd[0]); in Process1()
295 close(pipeFd[0]); in Process2()
323 write(pipeFd[ in Process2()
[all...]
H A Dvsync_60to90_test.cpp85 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync60To90Test
164 close(pipeFd[1]); in Process1()
188 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
202 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
236 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
252 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
285 read(pipeFd[0], buf, sizeof(buf)); in Process1()
288 close(pipeFd[0]); in Process1()
295 close(pipeFd[0]); in Process2()
323 write(pipeFd[ in Process2()
[all...]
H A Dvsync_60to30_test.cpp78 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync60To30Test
157 close(pipeFd[1]); in Process1()
181 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
195 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
229 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
243 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
276 read(pipeFd[0], buf, sizeof(buf)); in Process1()
279 close(pipeFd[0]); in Process1()
286 close(pipeFd[0]); in Process2()
314 write(pipeFd[ in Process2()
[all...]
H A Dvsync_120to90_test.cpp78 static inline int pipeFd[2] = {}; member in OHOS::Rosen::VSync120To90Test
157 close(pipeFd[1]); in Process1()
181 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
195 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
229 read(pipeFd[0], &changeRefreshRate, sizeof(changeRefreshRate)); in Process1()
243 read(pipeFd[0], &timeStamps, sizeof(timeStamps)); in Process1()
276 read(pipeFd[0], buf, sizeof(buf)); in Process1()
279 close(pipeFd[0]); in Process1()
286 close(pipeFd[0]); in Process2()
314 write(pipeFd[ in Process2()
[all...]
/foundation/graphic/graphic_2d/frameworks/surfaceimage/test/systemtest/
H A Dnative_image_system_test.cpp58 int32_t ThreadNativeWindowProcess001(int32_t *pipeFd, uint64_t uniqueId);
271 int32_t NativeImageSystemTest::ThreadNativeWindowProcess001(int32_t *pipeFd, uint64_t uniqueId) in ThreadNativeWindowProcess001() argument
278 write(pipeFd[1], &data, sizeof(data)); in ThreadNativeWindowProcess001()
283 write(pipeFd[1], &data, sizeof(data)); in ThreadNativeWindowProcess001()
285 read(pipeFd[0], &data, sizeof(data)); in ThreadNativeWindowProcess001()
292 int32_t pipeFd[2] = {}; in HWTEST_F() local
293 pipe(pipeFd); in HWTEST_F()
310 std::thread thread([this, pipeFd, uniqueId]() { in HWTEST_F()
311 int32_t ret = this->ThreadNativeWindowProcess001((int32_t*)(pipeFd), uniqueId); in HWTEST_F()
316 read(pipeFd[ in HWTEST_F()
[all...]

Completed in 14 milliseconds

12