Home
last modified time | relevance | path

Searched refs:open (Results 1 - 25 of 389) sorted by relevance

12345678910>>...16

/base/update/packaging_tools/test/
H A Dtest_update_package.py42 with open(VERSION_MBN_PATH) as om_second_f:
63 with open(VERSION_MBN_PATH) as om_third_f:
96 with open(VERSION_MBN_PATH, 'w') as w_f:
98 with open(BOARD_LIST_PATH, 'w') as w_f:
100 with open(VERSION_MBN_PATH) as om_first_f:
153 with open(package_path, 'wb') as w_f:
H A Dtest_utils.py63 with open('test.file', 'w') as w_f:
80 with open("./updater_specified_config_repeats.xml", "wb") as w_f:
102 with open('test.file', 'w') as w_f:
120 with open(VERSION_MBN_PATH, 'w') as w_f:
134 with open(VERSION_MBN_PATH, 'w') as w_f:
136 with open(BOARD_LIST_PATH, 'w') as w_f:
152 with open("./partition_file_conversion_failed.xml", "wb") as w_f:
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
H A Ddlp_zip_test.cpp112 int32_t fd = open(zipFile.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F()
139 int32_t fd = open(zipFile.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F()
142 int32_t fd2 = open(inZip.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F()
172 int32_t fd = open(zipFile.c_str(), O_WRONLY | O_CREAT, 0666); in HWTEST_F()
176 int32_t fd2 = open(zipFile.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F()
180 int32_t fd3 = open(inZip1.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F()
185 int32_t fd4 = open(inZip2.c_str(), O_RDWR | O_CREAT, 0666); in HWTEST_F()
H A Ddlp_file_test.cpp680 int fd = open("/data/fuse_test.txt", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); in HWTEST_F()
707 int fd = open("/data/fuse_test.txt", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); in HWTEST_F()
734 int fd = open("/data/fuse_test.txt", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); in HWTEST_F()
767 int fd = open("/data/fuse_test.txt", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); in HWTEST_F()
802 int fd = open("/data/fuse_test.txt", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); in HWTEST_F()
837 int fd = open("/data/fuse_test.txt", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); in HWTEST_F()
1183 int fd = open("/data/fuse_test.txt", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); in HWTEST_F()
1206 int fd = open("/data/fuse_test.txt", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); in HWTEST_F()
1245 int fdPlain = open("/data/fuse_test_plain.txt", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU); in HWTEST_F()
1247 int fdDlp = open("/dat in HWTEST_F()
[all...]
/base/security/access_token/interfaces/innerkits/token_setproc/src/
H A Dtoken_setproc.c39 int fd = open(TOKENID_DEVNODE, O_RDWR); in GetSelfTokenID()
55 int fd = open(TOKENID_DEVNODE, O_RDWR); in SetSelfTokenID()
72 int fd = open(TOKENID_DEVNODE, O_RDWR); in GetFirstCallerTokenID()
88 int fd = open(TOKENID_DEVNODE, O_RDWR); in SetFirstCallerTokenID()
H A Dperm_setproc.cpp72 int32_t fd = open(TOKENID_DEVNODE, O_RDWR); in AddPermissionToKernel()
87 int32_t fd = open(TOKENID_DEVNODE, O_RDWR); in RemovePermissionFromKernel()
108 int32_t fd = open(TOKENID_DEVNODE, O_RDWR); in SetPermissionToKernel()
130 int32_t fd = open(TOKENID_DEVNODE, O_RDWR); in GetPermissionFromKernel()
/base/update/packaging_tools/
H A Dbuild_pkcs7.py48 with open(CERT_PATH, 'rb') as cert_file:
64 with open(package_path, 'rb') as package_file:
77 with open(private_key_file, 'rb') as f_r:
101 with open(private_key_file, 'rb') as f_r:
136 package_fd = os.open(signed_package, os.O_RDWR | os.O_CREAT | os.O_TRUNC, 0o755)
140 with open(unsigned_package, 'rb') as f_unsign:
163 digest_fd = os.open("digest", os.O_RDWR | os.O_CREAT, 0o755)
168 signatute_fd = os.open("signature", os.O_RDWR | os.O_CREAT, 0o755)
/base/update/updater/test/unittest/updater_binary/
H A Dupdate_image_block_test.cpp64 int fd = open("/dev/null", O_RDWR); in HWTEST_F()
75 int fd = open("/dev/null", O_RDWR); in HWTEST_F()
86 int fd = open("/dev/null", O_RDWR); in HWTEST_F()
H A Dupdate_processor_unittest.cpp75 int fd = open("/dev/null", O_RDWR); in HWTEST_F()
91 int fd = open("/dev/null", O_RDWR); in HWTEST_F()
107 int fd = open("/dev/null", O_RDWR); in HWTEST_F()
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
H A Dhap_verify_test.cpp88 appFile.open(errorFile.c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in HWTEST_F()
99 hapFile.open(rightFile.c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in HWTEST_F()
112 hapFile1.open(rightFile1.c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in HWTEST_F()
126 hapFile2.open(invalidFile.c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in HWTEST_F()
148 hapFile.open(filePath.c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in HWTEST_F()
176 hapFile.open(filePath[i].c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in HWTEST_F()
202 errorFile.open(errorfilePath[i].c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in HWTEST_F()
214 errorFile.open(errorfilePath[i].c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in HWTEST_F()
225 errorFile.open(errorfilePath[i].c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in HWTEST_F()
246 hapFile.open(filePat in HWTEST_F()
[all...]
H A Dhap_crl_manager_test.cpp44 source.open(sourceFilePath.c_str(), std::ios::in); in CopyFile()
48 dest.open(destFilePath.c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in CopyFile()
62 fileStream.open(filePath.c_str(), std::ios::binary | std::ios::out | std::ios::trunc); in ClearFile()
/base/global/i18n/tools/
H A Ddata_process.py29 with open(filename, "r") as f:
40 with os.fdopen(os.open("data/loc2tz.pickle", os.O_RDWR | os.O_CREAT, 0o640), "wb") as f:
46 with open(pickle_name, "rb") as f:
88 with os.fdopen(os.open("data/name2num.txt", os.O_RDWR | os.O_CREAT, 0o640), "w", encoding="utf-8") as f:
94 with os.fdopen(os.open("data/num2name.txt", os.O_RDWR | os.O_CREAT, 0o640), "w", encoding="utf-8") as f:
/base/startup/init/services/etc/appender/
H A Dfile_appender.py94 with open(append_f, 'r') as src:
99 with open(options.source_file, 'r') as source_f:
111 with open(options.source_file, 'r') as source_f:
117 with open(append_f, 'r') as src:
137 with os.fdopen(os.open(options.output, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), 'w') as target_f:
/base/security/selinux_adapter/scripts/selinux_check/
H A Dcheck_common.py28 with open(input_file, 'r') as input_f:
41 with open(input_file, 'r') as fp:
55 with open(policy_file, 'r') as fp:
H A Dcheck_baseline.py41 with open(cil_file, 'r', encoding='utf-8') as cil_read:
86 with open(cil_file, 'r', encoding='utf-8') as cil_read:
98 with open(cil_file, 'r', encoding='utf-8') as cil_read:
109 with open(cil_file, 'r', encoding='utf-8') as cil_read:
118 with open(cil_file, 'r', encoding='utf-8') as cil_read:
144 with open(output_conf, 'w', encoding="utf-8") as fd:
/base/web/webview/ohos_interface/ohos_glue/scripts/
H A Dsystem_util.py19 from io import open namespace
37 with open(name, 'r', encoding='utf-8') as f:
46 with open(name, 'w', encoding='utf-8') as f:
/base/global/timezone/tool/update_tool/
H A Ddownload_iana.py32 with os.fdopen(os.open(path, flags, modes), 'r') as file:
53 with os.fdopen(os.open(save_path + file_name, flags, modes), 'wb+') as file:
85 tar = tarfile.open(save_path + file_name, "r:gz")
114 with os.fdopen(os.open(os.path.join(download_path, 'version.txt'), flags, modes), 'w') as file:
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/test/unittest/src/
H A Ddlp_fuse_test.cpp194 g_mountFd = open(FUSE_DEV.c_str(), O_RDWR); in PrepareDlpFuseFsMount()
199 DLP_LOG_ERROR(LABEL, "open fuse device failed."); in PrepareDlpFuseFsMount()
318 g_plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
319 g_dlpFileFd = open("/data/fuse_test.txt.dlp", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
337 // open link file in HWTEST_F()
338 int32_t linkfd = open(TEST_LINK_FILE_PATH.c_str(), O_RDWR); in HWTEST_F()
376 g_plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
377 g_dlpFileFd = open("/data/fuse_test.txt.dlp", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
391 // open link file in HWTEST_F()
392 int32_t linkfd = open(TEST_LINK_FILE_PAT in HWTEST_F()
[all...]
H A Ddlp_file_test.cpp138 g_plainFileFd = open("/data/file_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
139 g_dlpFileFd = open("/data/file_test.txt.dlp", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
153 g_recoveryFileFd = open("/data/fuse_test.txt.recovery", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
178 g_plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
179 g_dlpFileFd = open("/data/fuse_test.txt.dlp", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
215 g_recoveryFileFd = open("/data/fuse_test.txt.recovery", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
236 g_plainFileFd = open("/data/fuse_test.txt", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
237 g_dlpFileFd = open("/data/fuse_test.txt.dlp", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
268 g_recoveryFileFd = open("/data/fuse_test.txt.recovery", O_CREAT | O_RDWR | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/
H A Devent_logger_catcher_test.cpp80 auto fd = open("/data/test/catcherFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); in HWTEST_F()
100 auto fd = open("/data/test/testFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); in HWTEST_F()
129 auto fd = open("/data/test/testFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); in HWTEST_F()
154 auto fd = open("/data/test/testFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); in HWTEST_F()
210 auto fd = open("/data/test/catcherFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); in HWTEST_F()
230 auto fd = open("/data/test/catcherFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); in HWTEST_F()
250 auto fd = open("/data/test/FfrtCatcherFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); in HWTEST_F()
295 auto fd = open("/data/test/dmesgCatcherFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); in HWTEST_F()
326 auto fd = open("/data/test/dmesgCatcherFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); in HWTEST_F()
347 auto fd = open("/dat in HWTEST_F()
[all...]
/base/powermgr/power_manager/services/native/src/actions/default/suspend/
H A Drunning_lock_hub.cpp66 lockFd_ = UniqueFd(TEMP_FAILURE_RETRY(open(LOCK_PATH, O_RDWR | O_CLOEXEC))); in InitFd()
67 unlockFd_ = UniqueFd(TEMP_FAILURE_RETRY(open(UNLOCK_PATH, O_RDWR | O_CLOEXEC))); in InitFd()
/base/startup/init/services/etc/passwd_appender/
H A Dpasswd_appender.py95 with open(append_f, 'r') as src:
100 with open(options.source_file, 'r') as source_f:
133 with open(file_name, encoding='utf-8') as fp:
177 with open(file, 'r') as source_f:
195 with os.fdopen(os.open(options.output, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), 'w') as target_f:
/base/startup/init/test/fuzztest/utils/
H A Dfuzz_utils.cpp22 int fd = open("/dev/null", O_RDWR | O_CLOEXEC); in CloseStdout()
/base/update/updater/test/fuzztest/utils/
H A Dfuzz_utils.cpp22 int fd = open("/dev/null", O_RDWR | O_CLOEXEC); in CloseStdout()
/base/update/sys_installer/services/module_update/src/
H A Dmodule_loop.cpp92 int fd = open(LOOP_CTL_PATH, O_RDWR | O_CLOEXEC); in PreAllocateLoopDevices()
94 LOG(ERROR) << "Failed to open loop-control"; in PreAllocateLoopDevices()
103 LOG(ERROR) << "Failed to open " << BLOCK_DEV_PATH; in PreAllocateLoopDevices()
161 UniqueFd sysfsFd(open(realPath.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureReadAhead()
167 sysfsFd = UniqueFd(open(realPath.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureReadAhead()
169 LOG(ERROR) << "Fail to open file: " << realPath << ", errno=" << errno; in ConfigureReadAhead()
247 UniqueFd targetFd(open(realPath.c_str(), O_RDONLY | O_CLOEXEC | O_DIRECT)); in SetUpLoopDevice()
256 LOG(ERROR) << "Failed to open " << realPath << " errno=" << savedErrno; in SetUpLoopDevice()
261 targetFd = UniqueFd(open(realPath.c_str(), O_RDONLY | O_CLOEXEC)); in SetUpLoopDevice()
263 LOG(ERROR) << "Failed to open " << realPat in SetUpLoopDevice()
[all...]

Completed in 11 milliseconds

12345678910>>...16