/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/ |
H A D | build.py | 14 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 D | system_operation.cpp | 36 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 D | power_interface_impl.cpp | 220 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 D | hibernate.cpp | 109 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 D | power_config.cpp | 90 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 D | hdf_defconfig_patch.py | 47 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 D | hdf_vendor_build_file.py | 30 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 D | RightMenu.js | 76 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 D | hdf_utils.py | 112 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 D | file_test.c | 45 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 D | hash_test.py | 28 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 D | mtd_block_lite.c | 87 .open = LiteosMtdBlockOpen, 97 .open = LiteosMtdBlockOpen,
|
/drivers/hdf_core/framework/test/unittest/osal/ |
H A D | osal_file_test.c | 54 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 D | hello_uart_dev.c | 23 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 D | usbfn_mtp_test.cpp | 116 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 D | hcgen_test.py | 56 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 D | partitionslot_manager.cpp | 93 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 D | osal_cdev.c | 52 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 D | unit_test.py | 39 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 D | bluetooth_address.cpp | 124 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 D | osal_cdev.h | 31 int (*open)(struct OsalCdev *cdev, struct file *filep); member
|
/drivers/hdf_core/framework/support/platform/include/pwm/ |
H A D | pwm_core.h | 28 int32_t (*open)(struct PwmDev *pwm); member
|
/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/ |
H A D | hdi_service_test.cpp | 176 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 D | performance_hdi_test.cpp | 59 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 D | get_mem_excel.py | 83 list_file = open(list_file_path, 'r') 119 mem_file = open(mem_smaps_file_name, "r")
|