Home
last modified time | relevance | path

Searched refs:fd2 (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/frameworks/fence/src/
H A Dfence.cpp120 int FenceMerge(const char* name, int fd1, int fd2) in FenceMerge() argument
129 if (fd1 >= 0 && fd2 < 0) { in FenceMerge()
130 sync_merge_data.fd2 = fd1; in FenceMerge()
134 if (fd1 < 0 && fd2 >= 0) { in FenceMerge()
135 sync_merge_data.fd2 = fd2; in FenceMerge()
136 result_code = ioctl(fd2, SYNC_IOC_MERGE, &sync_merge_data); in FenceMerge()
139 if (fd1 >= 0 && fd2 >= 0) { in FenceMerge()
140 sync_merge_data.fd2 = fd2; in FenceMerge()
144 if (fd1 < 0 && fd2 < 0) { in FenceMerge()
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
H A Ddlp_zip_test.cpp142 int32_t fd2 = open(inZip.c_str(), O_RDWR | O_CREAT, 0666); variable
145 res = AddFileContextToZip(fd2, inZip.c_str(), zipFile.c_str());
148 res = AddFileContextToZip(fd2, inZip.c_str(), zipFile.c_str());
176 int32_t fd2 = open(zipFile.c_str(), O_RDWR | O_CREAT, 0666); variable
177 res = IsZipFile(fd2);
182 res = IsZipFile(fd2);
187 res = IsZipFile(fd2);
191 close(fd2);
H A Ddlp_file_test.cpp1736 int fd2 = open("/data/fuse_test2.txt", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); variable
1737 ASSERT_NE(fd2, -1);
1738 …ASSERT_EQ(DLP_PARSE_ERROR_FILE_OPERATE_FAIL, testFile.DoDlpContentCopyOperation(fd, fd2, 10, 100));
/ohos5.0/base/hiviewdfx/hiview/plugins/sysevent_source/test/unittest/common/
H A Dsys_event_stat_test.cpp83 int fd2 = OpenTestFile("./fd2.txt"); variable
84 sysEventStat_.StatDetail(fd2);
85 close(fd2);
/ohos5.0/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()
73 fd = fileno(fd2); in OpenFile()
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-small-debug-trace.md50 假设需要新增对文件(fd1、fd2)读写操作的简易插桩,
54 在读fd2文件的适当位置插入:
55 LOS_TRACE_EASY(1, fd2, flag, size);
58 在写fd2文件的适当位置插入:
59 LOS_TRACE_EASY(2, fd2,flag, size);
/ohos5.0/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()
/ohos5.0/foundation/graphic/graphic_surface/sync_fence/src/
H A Dsync_fence.cpp92 int32_t SyncFence::SyncMerge(const char *name, int32_t fd1, int32_t fd2, int32_t &newFenceFd) in SyncMerge() argument
95 syncMergeData.fd2 = fd2; in SyncMerge()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/
H A Ddistributeddb_common_test.cpp135 OS::FileHandle *fd2 = nullptr; variable
137 EXPECT_EQ(OS::OpenFile(g_testDir + "/normalmode", fd2), E_OK);
138 EXPECT_EQ(OS::FileLock(fd2, true), E_OK);
139 EXPECT_EQ(OS::FileLock(fd2, true), E_OK);
144 EXPECT_EQ(OS::FileUnlock(fd2), E_OK);
145 EXPECT_EQ(OS::CloseFile(fd2), E_OK);
/ohos5.0/foundation/graphic/graphic_2d/frameworks/fence/include/
H A Dfence.h33 int FenceMerge(const char* name, int fd1, int fd2);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/
H A Drs_ashmem_helper_test.cpp119 int fd2 = 10; variable
121 auto res02 = AshmemAllocator::CreateAshmemAllocatorWithFd(fd2, size2, mapType);
/ohos5.0/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);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-form-kit/
H A Djs-apis-application-formBindingData.md38 …son 格式的字符串。其中图片数据以'formImages'作为标识,内容为图片标识与图片文件描述符的键值对{'formImages': {'key1': fd1, 'key2': fd2}}。 |
H A Djs-apis-app-form-formBindingData.md59 …json 格式的字符串。其中图片数据以'formImages'作为标识,内容为图片标识与图片文件描述符的键值对{'formImages': {'key1': fd1, 'key2': fd2}}。|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/test/buffer_handle/
H A Dbuffer_handle_test.cpp429 int fd2 = dup(fd); variable
430 ASSERT_NE(fd2, -1);
431 ret = HdfSbufWriteFileDescriptor(data, fd2);
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dapi_test.cpp493 int fd2 = open(g_file2, O_RDONLY); variable
501 OH_AVSource *source2 = OH_AVSource_CreateWithFD(fd2, 0, size2);
508 close(fd2);
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-debug-trace.md50 Perform simple instrumentation for reading and writing files fd1 and fd2.
54 Insert the following to the position where the fd2 file is read:
55 LOS_TRACE_EASY(1, fd2, flag, size);
58 Insert the following in the position where the fd2 file is written:
59 LOS_TRACE_EASY(2, fd2, flag, size);
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/InnerAPI/
H A Dapi_test.cpp322 int fd2 = open(g_file2, O_RDONLY); variable
329 std::shared_ptr<AVSource> source2 = AVSourceFactory::CreateWithFD(fd2, 0, size2);
331 close(fd2);
/ohos5.0/docs/en/application-dev/reference/apis-form-kit/
H A Djs-apis-application-formBindingData.md38 …ntifier and image file descriptor. The final format is {'formImages': {'key1': fd1, 'key2': fd2}}.|
H A Djs-apis-app-form-formBindingData.md59 …ntifier and image file descriptor. The final format is {'formImages': {'key1': fd1, 'key2': fd2}}.|
/ohos5.0/base/tee/tee_client/services/tlogcat/src/
H A Dtlogcat.c245 int32_t fd2 = fileno(file); in LogFilesOpen() local
246 if (fd2 < 0) { in LogFilesOpen()
251 ret = fchmod(fd2, S_IRUSR | S_IWUSR | S_IRGRP); in LogFilesOpen()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_packer_test.cpp176 const int fd2 = open("/data/local/tmp/image/test.jpg", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); variable
181 pack.StartPacking(fd2, option);
184 uint32_t ret = pack.StartPacking(fd2, option2);
/ohos5.0/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()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/avsource_test/
H A Davsource_unit_test.cpp405 int32_t fd2 = OpenFile(g_mp3Path); variable
410 …shared_ptr<AVSourceMock> source2 = AVSourceMockFactory::CreateSourceWithFD(fd2, SOURCE_OFFSET, siz…
416 close(fd2);