Home
last modified time | relevance | path

Searched refs:fd1 (Results 1 - 5 of 5) sorted by relevance

/test/xts/acts/multimedia/av_codec/demuxer/src/
H A Dapi_test.cpp43 int fd1; member in OHOS::Media::DemuxerApiNdkTest
62 fd1 = open(g_file1, O_RDONLY); in SetUp()
69 std::cout << fd1 << "----------" << g_file1 << "=====" << size << std::endl; in SetUp()
74 close(fd1); in TearDown()
75 fd1 = 0; in TearDown()
199 source = OH_AVSource_CreateWithFD(fd1, 0, size); in HWTEST_F()
212 source = OH_AVSource_CreateWithFD(fd1, 0, 0); in HWTEST_F()
254 source = OH_AVSource_CreateWithFD(fd1, 0, size); in HWTEST_F()
277 source = OH_AVSource_CreateWithFD(fd1, 0, size); in HWTEST_F()
305 source = OH_AVSource_CreateWithFD(fd1, in HWTEST_F()
[all...]
/test/xts/acts/commonlibrary_lite/file_hal/src/
H A Dutils_file_func_test.c201 int fd1 = UtilsFileOpen(fileName, O_RDONLY_FS | O_CREAT_FS | O_EXCL_FS, 0); variable
202 TEST_ASSERT_EQUAL_INT(-1, fd1);
203 int ret1 = UtilsFileClose(fd1);
220 int fd1 = UtilsFileOpen(fileName, O_WRONLY_FS | O_CREAT_FS | O_EXCL_FS, 0); variable
221 TEST_ASSERT_EQUAL_INT(-1, fd1);
222 int ret1 = UtilsFileClose(fd1);
239 int fd1 = UtilsFileOpen(fileName, O_RDWR_FS | O_CREAT_FS | O_EXCL_FS, 0); variable
240 TEST_ASSERT_EQUAL_INT(-1, fd1);
241 int ret1 = UtilsFileClose(fd1);
258 int fd1 variable
277 int fd1 = UtilsFileOpen(fileName, O_RDWR_FS | O_CREAT_FS | O_EXCL_FS | O_APPEND_FS, 0); global() variable
316 int fd1 = UtilsFileOpen(fileName, O_RDWR_FS | O_TRUNC_FS, 0); global() variable
319 UtilsFileClose(fd1); global() variable
[all...]
H A Dutils_file_reli_test.c247 int fd1 = UtilsFileOpen(fileName1, O_RDWR_FS | O_CREAT_FS, 0); variable
248 UtilsFileWrite(fd1, g_def, strlen(g_def));
249 UtilsFileClose(fd1); variable
285 int fd1 = UtilsFileOpen(fileName1, O_RDWR_FS | O_CREAT_FS, 0); variable
286 UtilsFileWrite(fd1, g_def, strlen(g_def));
287 UtilsFileClose(fd1); variable
327 int fd1 = UtilsFileOpen(fileName1, O_RDWR_FS | O_CREAT_FS, 0); variable
328 UtilsFileClose(fd1); variable
363 int fd1 = UtilsFileOpen(fileName1, O_RDWR_FS | O_CREAT_FS, 0); variable
364 UtilsFileClose(fd1); variable
[all...]
/test/xts/hats/kernel/syscalls/fileio/tee/
H A DTeeApiTest.cpp104 int fd1; in HWTEST_F() local
111 fd1 = open(teeFile1, O_RDWR | O_CREAT | O_TRUNC, 0644); in HWTEST_F()
112 EXPECT_TRUE(fd1 >= 0); in HWTEST_F()
119 ssize_t size = tee(fd1, fd2, TEST_DATA_LEN, SPLICE_F_NONBLOCK); in HWTEST_F()
124 size = tee(fd1, pipeFd[1], TEST_DATA_LEN, SPLICE_F_NONBLOCK); in HWTEST_F()
136 close(fd1); in HWTEST_F()
/test/xts/hats/kernel/syscalls/fileio/flock/
H A DFlockApiTest.cpp116 int fd1 = open(TEST_FILE, O_RDWR | O_CREAT | O_TRUNC, MODE_0600); in HWTEST_F() local
117 EXPECT_TRUE(fd1 > 0); in HWTEST_F()
121 ret = flock(fd1, LOCK_EX); in HWTEST_F()
129 flock(fd1, LOCK_UN); in HWTEST_F()
130 close(fd1); in HWTEST_F()

Completed in 4 milliseconds