/ohos5.0/foundation/graphic/graphic_2d/frameworks/fence/src/ |
H A D | fence.cpp | 120 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 D | dlp_zip_test.cpp | 142 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 D | dlp_file_test.cpp | 1736 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 D | sys_event_stat_test.cpp | 83 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 D | mock_ability_test.h | 68 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 D | kernel-small-debug-trace.md | 50 假设需要新增对文件(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 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()
|
/ohos5.0/foundation/graphic/graphic_surface/sync_fence/src/ |
H A D | sync_fence.cpp | 92 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 D | distributeddb_common_test.cpp | 135 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 D | fence.h | 33 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 D | rs_ashmem_helper_test.cpp | 119 int fd2 = 10; variable 121 auto res02 = AshmemAllocator::CreateAshmemAllocatorWithFd(fd2, size2, mapType);
|
/ohos5.0/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);
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-form-kit/ |
H A D | js-apis-application-formBindingData.md | 38 …son 格式的字符串。其中图片数据以'formImages'作为标识,内容为图片标识与图片文件描述符的键值对{'formImages': {'key1': fd1, 'key2': fd2}}。 |
|
H A D | js-apis-app-form-formBindingData.md | 59 …json 格式的字符串。其中图片数据以'formImages'作为标识,内容为图片标识与图片文件描述符的键值对{'formImages': {'key1': fd1, 'key2': fd2}}。|
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/test/buffer_handle/ |
H A D | buffer_handle_test.cpp | 429 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 D | api_test.cpp | 493 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 D | kernel-small-debug-trace.md | 50 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 D | api_test.cpp | 322 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 D | js-apis-application-formBindingData.md | 38 …ntifier and image file descriptor. The final format is {'formImages': {'key1': fd1, 'key2': fd2}}.|
|
H A D | js-apis-app-form-formBindingData.md | 59 …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 D | tlogcat.c | 245 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 D | image_packer_test.cpp | 176 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 D | backupservicestub_fuzzer.cpp | 500 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 D | avsource_unit_test.cpp | 405 int32_t fd2 = OpenFile(g_mp3Path); variable 410 …shared_ptr<AVSourceMock> source2 = AVSourceMockFactory::CreateSourceWithFD(fd2, SOURCE_OFFSET, siz… 416 close(fd2);
|