Home
last modified time | relevance | path

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

123456

/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/
H A Dbuild.py14 with open(r".\..\hcsVSCode\editor.html", "r", encoding="utf8") as file:
18 with open(r".\dist\main.js", "r", encoding="utf8") as file:
23 with os.fdopen(os.open(r".\..\hcsVSCode\editor.html", flags, modes),
/drivers/peripheral/power/interfaces/hdi_service/src/
H A Dsystem_operation.cpp36 UniqueFd fd(TEMP_FAILURE_RETRY(open(WAKE_LOCK_PATH, O_RDWR | O_CLOEXEC))); in WriteWakeLock()
49 UniqueFd fd(TEMP_FAILURE_RETRY(open(WAKE_UNLOCK_PATH, O_RDWR | O_CLOEXEC))); in WriteWakeUnlock()
H A Dpower_interface_impl.cpp220 UniqueFd suspendStateFd(TEMP_FAILURE_RETRY(open(SUSPEND_STATE_PATH, O_RDWR | O_CLOEXEC))); in DoSuspendWithTag()
260 UniqueFd suspendStateFd(TEMP_FAILURE_RETRY(open(SUSPEND_STATE_PATH, O_RDWR | O_CLOEXEC))); in DoSuspend()
324 UniqueFd fd(TEMP_FAILURE_RETRY(open(LOCK_PATH, O_RDWR | O_CLOEXEC))); in SuspendBlock()
338 UniqueFd fd(TEMP_FAILURE_RETRY(open(UNLOCK_PATH, O_RDWR | O_CLOEXEC))); in SuspendUnblock()
405 wakeupCountFd = UniqueFd(TEMP_FAILURE_RETRY(open(WAKEUP_COUNT_PATH, O_RDWR | O_CLOEXEC))); in ReadWakeCount()
416 wakeupCountFd = UniqueFd(TEMP_FAILURE_RETRY(open(WAKEUP_COUNT_PATH, O_RDWR | O_CLOEXEC))); in WriteWakeCount()
424 UniqueFd fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDWR | O_CLOEXEC))); in LoadSystemInfo()
432 str = "# Failed to open"; in LoadSystemInfo()
488 UniqueFd wakeupCauseFd(TEMP_FAILURE_RETRY(open(getPath.c_str(), O_RDONLY | O_CLOEXEC))); in GetWakeupReason()
H A Dhibernate.cpp109 HDF_LOGE("open file failed, errno = %{public}d", errno); in GetResumeInfo()
171 int fd = open(SWAP_FILE_PATH, O_RDWR); in MkSwap()
173 HDF_LOGE("open swap file failed when mkswap"); in MkSwap()
281 int fd = open(SWAP_FILE_PATH, O_RDONLY | O_LARGEFILE | O_EXCL | O_CREAT, SWAP_FILE_MODE); in CreateSwapFile()
283 HDF_LOGE("open swap file failed, errno=%{public}d", errno); in CreateSwapFile()
331 UniqueFd fd(TEMP_FAILURE_RETRY(open(HIBERNATE_RESUME, O_RDWR | O_CLOEXEC))); in WriteOffsetAndResume()
358 UniqueFd fd(TEMP_FAILURE_RETRY(open(SYS_POWER_RESUME_OFFSET, O_RDWR | O_CLOEXEC))); in WriteOffset()
377 UniqueFd fd(TEMP_FAILURE_RETRY(open(SYS_POWER_RESUME, O_RDWR | O_CLOEXEC))); in WriteResume()
400 UniqueFd fd(TEMP_FAILURE_RETRY(open(HIBERNATE_STATE_PATH, O_RDWR | O_CLOEXEC))); in WritePowerState()
445 int fd = open(SWAP_FILE_PAT in GetResumeOffset()
[all...]
H A Dpower_config.cpp90 ifsConf.open(configPath); in OpenFile()
93 HDF_LOGI("open file is %{public}d", isOpen); in OpenFile()
99 ifsConf.open(VENDOR_POWER_CONFIG_PATH); in OpenFile()
101 HDF_LOGI("open then vendor battery_config.json is %{public}d", isOpen); in OpenFile()
107 ifsConf.open(SYSTEM_POWER_CONFIG_PATH); in OpenFile()
109 HDF_LOGI("open then system battery_config.json is %{public}d", isOpen); in OpenFile()
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_defconfig_patch.py47 with open(path, "rb") as f_read:
67 write_fd = os.open(path, config_info["flags"], config_info["modes"])
88 with open(path, "rb") as fread:
108 with open(path, "wb") as fwrite:
112 with open(path, "r+", encoding=codetype) as fread:
131 with open(path, "w", encoding=codetype) as fwrite:
H A Dhdf_vendor_build_file.py30 with open(self.file_path, 'r') as file_read:
43 write_fd = os.open(self.file_path, config_info["flags"], config_info["modes"])
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/
H A DRightMenu.js76 open: false,
162 if (e.open) {
206 e.open = !e.open;
219 if (e.open && RightMenu.TouchGroup(e.group, msg, x, y)) {
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/
H A Dhdf_utils.py112 write_fd = os.open(file_path, config_info["flags"], config_info["modes"])
122 with open(file_path, 'w', newline='\n') as file_write:
132 with open(file_path, 'w', newline='\n') as file_write:
141 with open(file_path, 'w', newline='\n') as file_write:
150 with open(file_path, 'w', newline='\n') as file_write:
170 with open(file_path, encoding="utf-8") as file_read:
176 with open(file_path, encoding=code_type) as file_read:
182 with open(file_path, "rb") as file_binary_read:
194 with open(file_path, 'w+', newline='\n') as file_write:
200 write_fd = os.open(file_pat
[all...]
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/
H A Dfile_test.c45 fd = open(tmpFileName, O_CREAT | O_RDWR, TEST_FILE_PERMISSION); in fs_test1()
46 printf("open '%d\n", fd); in fs_test1()
106 wfd = open("/data/test", O_CREAT | O_RDWR, TEST_FILE_PERMISSION); in fs_test3()
126 wfd = open("/data/test", O_CREAT | O_RDWR, TEST_FILE_PERMISSION); in fs_test3()
/drivers/hdf_core/framework/tools/hdi-gen/test/hash_test/
H A Dhash_test.py28 with open(first_file, 'r') as first_hash_file:
29 with open(second_file, 'r') as second_hash_file:
75 with open(result_hash_file_path, 'r') as result_hash_file:
/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
H A Dmtd_block_lite.c87 .open = LiteosMtdBlockOpen,
97 .open = LiteosMtdBlockOpen,
/drivers/hdf_core/framework/test/unittest/osal/
H A Dosal_file_test.c54 ret = open(TEST_FILE_PATH_NAME, O_CREAT | O_RDWR, HDF_FILE_MODE); in OsalTestFileInit()
75 ret = open(TEST_FW_PATH_NAME, O_CREAT | O_RDWR, HDF_FILE_MODE); in OsalTestFileInit()
/drivers/hdf_core/framework/sample/platform/uart/dev/
H A Dhello_uart_dev.c23 fd = open("/dev/uartdev-5", O_RDWR); in main()
25 HDF_LOGE("uartdev-5 open failed %d", fd); in main()
/drivers/peripheral/usb/test/unittest/hal/src/
H A Dusbfn_mtp_test.cpp116 int32_t random = open("/dev/urandom", O_RDONLY); in WriteRandomDataToFile()
176 // Selinux config this UT only works in directory WORKED_UT_PATH for open/read/write file for case send/recvfile. in SetUpTestCase()
579 mfs.fd = open(filePathName.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0777); in HWTEST_F()
603 mfs.fd = open(filePathName.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0777); in HWTEST_F()
632 mfs.fd = open(filePathName.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0777); in HWTEST_F()
661 mfs.fd = open(filePathName.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0777); in HWTEST_F()
692 mfs.fd = open(filePathName.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0777); in HWTEST_F()
722 mfs.fd = open(filePathName.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0777); in HWTEST_F()
751 mfs.fd = open(filePathName.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0777); in HWTEST_F()
780 mfs.fd = open(filePathNam in HWTEST_F()
[all...]
/drivers/hdf_core/framework/tools/hc-gen/test/
H A Dhcgen_test.py56 with open(file_a, 'r') as f_a:
57 with open(file_target, 'r') as f_b:
68 with open(file_a, 'rb') as f_a:
69 with open(file_target, 'rb') as f_b:
119 with open(result_file_name, 'r') as result_file:
/drivers/peripheral/partitionslot/hal/src/
H A Dpartitionslot_manager.cpp93 int fd = open(MISC_DEVICE_NODE, O_RDWR | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in ReadMisc()
119 int fd = open(MISC_DEVICE_NODE, O_RDWR | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in WriteSlotToMisc()
121 HILOG_ERROR(LOG_CORE, "Failed to open miscDevice errno %{public}d ", errno); in WriteSlotToMisc()
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
H A Dosal_cdev.c52 return dev->opsImpl->open(dev, filep); in OsalCdevOpen()
122 fops->open = src->open != NULL ? OsalCdevOpen : NULL; in AssignFileOps()
/drivers/hdf_core/framework/tools/hdi-gen/test/unittest/
H A Dunit_test.py39 with open(first_file_path, 'r') as first_file:
40 with open(second_file_path, 'r') as second_file:
125 with open(os.path.join(self.target_dir, "fail_output.txt"), 'r') as target_output:
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
H A Dbluetooth_address.cpp124 int addrFd = open(path.c_str(), O_RDONLY); in GetDeviceAddress()
126 HDF_LOGI("GetDeviceAddress open %{public}s.", path.c_str()); in GetDeviceAddress()
127 int newFd = open(path.c_str(), O_RDWR | O_CREAT, 00644); in GetDeviceAddress()
128 HDF_LOGI("GetDeviceAddress open newFd %{public}d.", newFd); in GetDeviceAddress()
181 int fd = open("/dev/urandom", O_RDONLY); in GenerateDeviceAddress()
184 HDF_LOGE("open /dev/urandom failed err:%{public}s.", buf); in GenerateDeviceAddress()
/drivers/hdf_core/framework/include/osal/
H A Dosal_cdev.h31 int (*open)(struct OsalCdev *cdev, struct file *filep); member
/drivers/hdf_core/framework/support/platform/include/pwm/
H A Dpwm_core.h28 int32_t (*open)(struct PwmDev *pwm); member
/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/
H A Dhdi_service_test.cpp176 BATTERY_HILOGE(LABEL_TEST, "cannot open POWER_SUPPLY_BASE_PATH"); in InitBaseSysfs()
223 int fd = open(sysBattTemPath.c_str(), O_RDONLY); in ReadTemperatureSysfs()
225 BATTERY_HILOGE(LABEL_TEST, "failed to open TemperatureSysfs"); in ReadTemperatureSysfs()
260 int fd = open(sysBattVolPath.c_str(), O_RDONLY); in ReadVoltageSysfs()
262 BATTERY_HILOGE(LABEL_TEST, "failed to open VoltageSysfs"); in ReadVoltageSysfs()
297 int fd = open(sysBattCapPath.c_str(), O_RDONLY); in ReadCapacitySysfs()
299 BATTERY_HILOGE(LABEL_TEST, "failed to open CapacitySysfs"); in ReadCapacitySysfs()
335 int fd = open(sysBattTotalEnergyPath.c_str(), O_RDONLY); in ReadTotalEnergySysfs()
337 BATTERY_HILOGE(LABEL_TEST, "failed to open TotalEnergySysfs"); in ReadTotalEnergySysfs()
373 int fd = open(sysBattCurrentAvgPat in ReadCurrentAverageSysfs()
[all...]
/drivers/peripheral/camera/test/mpi/src/
H A Dperformance_hdi_test.cpp59 g_writeIntoFile.open("TimeConsuming.txt", ios::app); in HWTEST_F()
89 g_writeIntoFile.open("TimeConsuming.txt", ios::app); in HWTEST_F()
126 g_writeIntoFile.open("TimeConsuming.txt", ios::app); in HWTEST_F()
206 g_writeIntoFile.open("TimeConsuming.txt", ios::app); in HWTEST_F()
251 g_writeIntoFile.open("TimeConsuming.txt", ios::app); in HWTEST_F()
284 g_writeIntoFile.open("TimeConsuming.txt", ios::app); in HWTEST_F()
320 g_writeIntoFile.open("TimeConsuming.txt", ios::app); in HWTEST_F()
353 g_writeIntoFile.open("TimeConsuming.txt", ios::app); in HWTEST_F()
395 g_writeIntoFile.open("TimeConsuming.txt", ios::app); in HWTEST_F()
437 g_writeIntoFile.open("TimeConsumin in HWTEST_F()
[all...]
/drivers/peripheral/audio/test/sample/tools/get_mem_excel/
H A Dget_mem_excel.py83 list_file = open(list_file_path, 'r')
119 mem_file = open(mem_smaps_file_name, "r")

Completed in 12 milliseconds

123456