Home
last modified time | relevance | path

Searched refs:fd2 (Results 1 - 12 of 12) sorted by relevance

/foundation/ability/ability_runtime/test/mock/frameworks_kits_test/DemoAbility/
H A Dmock_ability_test.h68 FILE* fd2 = fopen("/dataability_openfile_test.txt", "r"); in OpenFile() local
69 if (fd2 == nullptr) { in OpenFile()
70 GTEST_LOG_(INFO) << "MockAbilityTest::OpenFile fd2 == nullptr"; in OpenFile()
73 fd = fileno(fd2); in OpenFile()
/foundation/resourceschedule/ffrt/test/testfunc/
H A Dutil.cpp182 int fd2 = perf_event_open(&attr, 0, -1, fd, 0); in perf_event2() local
183 if (fd2 == -1) { in perf_event2()
200 close(fd2); in perf_event2()
/foundation/graphic/graphic_surface/interfaces/inner_api/sync_fence/
H A Dsync_fence.h77 static int32_t SyncMerge(const char *name, int32_t fd1, int32_t fd2, int32_t &newFenceFd);
/foundation/graphic/graphic_surface/sync_fence/src/
H A Dsync_fence.cpp94 int32_t SyncFence::SyncMerge(const char *name, int32_t fd1, int32_t fd2, int32_t &newFenceFd) in SyncMerge() argument
97 syncMergeData.fd2 = fd2; in SyncMerge()
/foundation/graphic/graphic_surface/interfaces/inner_api/utils/
H A Dsync_fence.h77 static int32_t SyncMerge(const char *name, int32_t fd1, int32_t fd2, int32_t &newFenceFd);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/
H A Ddistributeddb_common_test.cpp135 OS::FileHandle *fd2 = nullptr; in HWTEST_F() local
137 EXPECT_EQ(OS::OpenFile(g_testDir + "/normalmode", fd2), E_OK); in HWTEST_F()
138 EXPECT_EQ(OS::FileLock(fd2, true), E_OK); in HWTEST_F()
139 EXPECT_EQ(OS::FileLock(fd2, true), E_OK); in HWTEST_F()
144 EXPECT_EQ(OS::FileUnlock(fd2), E_OK); in HWTEST_F()
145 EXPECT_EQ(OS::CloseFile(fd2), E_OK); in HWTEST_F()
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dapi_test.cpp493 int fd2 = open(g_file2, O_RDONLY); in HWTEST_F() local
501 OH_AVSource *source2 = OH_AVSource_CreateWithFD(fd2, 0, size2); in HWTEST_F()
508 close(fd2); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/
H A Drs_ashmem_helper_test.cpp119 int fd2 = 10; in HWTEST_F() local
121 auto res02 = AshmemAllocator::CreateAshmemAllocatorWithFd(fd2, size2, mapType); in HWTEST_F()
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/InnerAPI/
H A Dapi_test.cpp322 int fd2 = open(g_file2, O_RDONLY); in HWTEST_F() local
329 std::shared_ptr<AVSource> source2 = AVSourceFactory::CreateWithFD(fd2, 0, size2); in HWTEST_F()
331 close(fd2); in HWTEST_F()
/foundation/filemanagement/app_file_service/test/fuzztest/backupservicestub_fuzzer/
H A Dbackupservicestub_fuzzer.cpp500 int fd2 = TypeCast<int>(data + pos, &pos); in CmdAppIncrementalFileReadyFuzzTest() local
507 msg.WriteFileDescriptor(fd2); in CmdAppIncrementalFileReadyFuzzTest()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_packer_test.cpp179 const int fd2 = open("/data/local/tmp/image/test.jpg", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in HWTEST_F() local
184 pack.StartPacking(fd2, option); in HWTEST_F()
187 uint32_t ret = pack.StartPacking(fd2, option2); in HWTEST_F()
/foundation/multimedia/av_codec/test/unittest/avsource_test/
H A Davsource_unit_test.cpp405 int32_t fd2 = OpenFile(g_mp3Path); in HWTEST_F() local
410 shared_ptr<AVSourceMock> source2 = AVSourceMockFactory::CreateSourceWithFD(fd2, SOURCE_OFFSET, size2); in HWTEST_F()
416 close(fd2); in HWTEST_F()

Completed in 15 milliseconds