/foundation/ability/ability_runtime/test/mock/frameworks_kits_test/DemoAbility/ |
H A D | mock_ability_test.h | 68 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 D | util.cpp | 182 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 D | sync_fence.h | 77 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 D | sync_fence.cpp | 94 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 D | sync_fence.h | 77 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 D | distributeddb_common_test.cpp | 135 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 D | api_test.cpp | 493 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 D | rs_ashmem_helper_test.cpp | 119 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 D | api_test.cpp | 322 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 D | backupservicestub_fuzzer.cpp | 500 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 D | image_packer_test.cpp | 179 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 D | avsource_unit_test.cpp | 405 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()
|