Home
last modified time | relevance | path

Searched refs:fs (Results 1 - 25 of 59) sorted by relevance

123

/base/hiviewdfx/hichecker/interfaces/js/kits/napi/js_leak_watcher/
H A Djs_leak_watcher.js17 let fs = requireNapi('file.fs');
64 fs.moveFileSync('/data/storage/el2/base/files/' + heapDumpFileName, desFilePath, 0);
70 let heapDumpFile = fs.openSync(filePath, fs.OpenMode.READ_WRITE);
78 let readLen = fs.readSync(heapDumpFile.fd, buf, readOptions);
84 readLen = fs.readSync(heapDumpFile.fd, buf, readOptions);
86 fs.closeSync(heapDumpFile);
101 let files = fs.listFileSync(filePath, listFileOption);
112 fs
[all...]
/base/security/asset/services/db_operator/src/test/
H A Dtest_table.rs16 use std::fs;
30 fs::create_dir_all("/data/asset_test/0").unwrap(); in create_delete_table()
45 fs::remove_dir_all("/data/asset_test/0").unwrap(); in create_delete_table()
50 fs::create_dir_all("/data/asset_test/0").unwrap(); in table_restore()
61 fs::copy( in table_restore()
68 fs::remove_file("/data/asset_test/0/Native_asset_service_8100.db").unwrap(); in table_restore()
69 fs::copy( in table_restore()
79 fs::remove_dir_all("/data/asset_test/0").unwrap(); in table_restore()
84 fs::create_dir_all("/data/asset_test/0").unwrap(); in insert_test_data()
117 fs in execute_sql()
[all...]
H A Dtest_database.rs18 fs::{self, OpenOptions},
49 fs::create_dir_all(path).unwrap(); in create_dir()
56 fs::remove_dir_all(path).unwrap(); in remove_dir()
82 fs::copy(&db.path, &db.backup_path).unwrap(); in backup_db()
87 fs::create_dir_all("/data/asset_test/0").unwrap(); in create_and_drop_database()
99 fs::create_dir_all("/data/asset_test/0").unwrap(); in database_version()
111 fs::create_dir_all("/data/asset_test/0").unwrap(); in error_sql()
122 fs::create_dir_all("/data/asset_test/0").unwrap(); in create_delete_asset_table()
/base/security/asset/frameworks/os_dependency/file/src/
H A Dce_operator.rs19 use std::{fs, path::Path};
41 match fs::read(path) { in read_db_key_cipher()
57 match fs::write(path, db_key_cipher) { in write_db_key_cipher()
72 for file in fs::read_dir(path_str)? { in remove_ce_files()
74 match fs::remove_file(file.path().to_string_lossy().to_string()) { in remove_ce_files()
H A Dde_operator.rs20 use std::{fs, path::Path};
42 match fs::create_dir(path) { in create_user_de_dir()
63 match fs::remove_dir_all(path) { in delete_user_de_dir()
H A Dcommon.rs19 use std::{fs, path::Path};
35 for db_path in fs::read_dir(path_str)? {
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
H A Dlib_event_handler_checker_test.cpp82 auto fs = []() { in HWTEST_F() local
106 handler->PostTask(fs); in HWTEST_F()
134 auto fs = []() { in HWTEST_F() local
158 handler->PostTask(fs); in HWTEST_F()
185 auto fs = []() { in HWTEST_F() local
209 handler->PostTask(fs); in HWTEST_F()
/base/request/request/services/src/task/
H A Dfiles.rs15 use std::fs::{File, OpenOptions};
19 use ylong_runtime::fs::File as AsyncFile;
64 for (idx, fs) in config.file_specs.iter().enumerate() { in open_task_files()
67 let file = if fs.is_user_file { in open_task_files()
68 match fs.fd { in open_task_files()
77 open_file_readonly(uid, &bundle_and_account, &fs.path), in open_task_files()
97 let file = if fs.is_user_file { in open_task_files()
98 match fs.fd { in open_task_files()
107 open_file_readwrite(uid, &bundle_and_account, &fs.path), in open_task_files()
/base/hiviewdfx/faultloggerd/test/unittest/stacktrace_rust/
H A Dmain.rs18 use std::fs;
19 use std::fs::File;
60 let trace = fs::read_to_string(path).unwrap(); in test_print_trace()
/base/location/services/location_locator/locator/source/
H A Dlocation_config_manager.cpp142 std::ifstream fs(GetLocationSwitchConfigPath()); in GetLocationSwitchState()
143 if (!fs.is_open()) { in GetLocationSwitchState()
144 LBSLOGE(LOCATOR, "LocationConfigManager: fs.is_open false, return"); in GetLocationSwitchState()
148 while (std::getline(fs, line)) { in GetLocationSwitchState()
159 fs.clear(); in GetLocationSwitchState()
160 fs.close(); in GetLocationSwitchState()
246 std::fstream fs(GetLocationSwitchConfigPath()); in SetLocationSwitchState()
251 if (!fs.is_open()) { in SetLocationSwitchState()
252 LBSLOGE(LOCATOR, "LocationConfigManager: fs.is_open false, return"); in SetLocationSwitchState()
259 fs in SetLocationSwitchState()
[all...]
/base/hiviewdfx/faultloggerd/interfaces/rust/panic_handler/
H A Dlib.rs22 use std::fs;
46 let binding = fs::read_to_string(path).unwrap(); in read_process_name()
59 fs::read_to_string(path).unwrap() in read_thread_name()
/base/request/request/frameworks/cj/ffi/src/
H A Dcj_request_task.cpp37 namespace fs = std::filesystem;
154 fs::path folder = folderPath; in SetDirsPermission()
155 if (!(fs::exists(folder) && fs::is_directory(folder))) { in SetDirsPermission()
158 for (const auto &entry : fs::directory_iterator(folder)) { in SetDirsPermission()
159 fs::path path = entry.path(); in SetDirsPermission()
162 if (!fs::exists(newfilePath)) { in SetDirsPermission()
163 fs::copy(existfilePath, newfilePath); in SetDirsPermission()
242 fs::path folder = folderPath; in RemoveDirsPermission()
243 for (const auto &entry : fs in RemoveDirsPermission()
[all...]
/base/notification/distributed_notification_service/services/ans/src/clone/
H A Dnotification_clone_manager.cpp146 std::ifstream fs(BACKUP_CONFIG_FILE_PATH); in LoadConfig()
147 if (!fs.is_open()) { in LoadConfig()
153 while (std::getline(fs, line)) { in LoadConfig()
156 fs.close(); in LoadConfig()
/base/theme/wallpaper_mgr/utils/src/
H A Dfile_deal.cpp27 namespace fs = std::filesystem;
133 fs::path file(filePath); in IsZipFile()
134 if (fs::exists(file) && fs::is_regular_file(file)) { in IsZipFile()
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/test/
H A Dtest_util.cpp266 std::ofstream fs(file, std::ios::out); in WriteFile()
267 if (fs.is_open()) { in WriteFile()
268 fs << line << "\n"; in WriteFile()
269 fs.close(); in WriteFile()
/base/security/asset/services/core_service/src/common_event/
H A Dlistener.rs20 fs::{self, DirEntry},
57 for db_path in fs::read_dir(file_path)? { in remove_db()
63 match fs::remove_file(&db_path.path().to_string_lossy().to_string()) { in remove_db()
309 for db_path in fs::read_dir(format!("{}", entry.path().to_string_lossy()))? { in backup_de_db_if_accessible()
316 fs::copy(from_path, backup_path)?; in backup_de_db_if_accessible()
327 for db_path in fs::read_dir(ce_path)? { in backup_ce_db_if_accessible()
335 fs::copy(from_path, backup_path)?; in backup_ce_db_if_accessible()
349 for entry in fs::read_dir(DE_ROOT_PATH)? { in backup_all_db()
/base/update/sys_installer/services/module_update/util/src/
H A Dmodule_file.cpp67 for (const auto &fs : FS_TYPES) { in RetrieveFsType()
68 uint8_t buf[fs.len]; in RetrieveFsType()
69 if (!ReadFullyAtOffset(fd, buf, fs.len, imageOffset + fs.offset)) { in RetrieveFsType()
73 if (memcmp(buf, fs.magic, fs.len) == 0) { in RetrieveFsType()
74 return fs.type; in RetrieveFsType()
103 LOG(ERROR) << "Failed to get fs type " << path; in ParseImageStat()
108 LOG(ERROR) << "Failed to copy fs type " << fsTypePtr; in ParseImageStat()
/base/request/request/services/src/utils/
H A Dform_item.rs14 use std::fs::File;
/base/request/request/services/src/service/command/
H A Dopen_channel.rs14 use std::fs::File;
/base/request/request/pre_download/native/src/cache/
H A Dmanage.rs15 use std::fs::File;
H A Ddata.rs14 use std::fs::{File, OpenOptions};
166 use std::fs::read;
/base/request/request/services/tests/
H A Dstart.rs14 use std::fs::File;
H A Dresume.rs14 use std::fs::File;
/base/security/asset/services/db_operator/src/
H A Ddatabase_file_upgrade.rs19 use std::{fs, path::Path};
93 fs::remove_file(file_path)?; in remove_old_db()
114 for entry in fs::read_dir(path)? { in trigger_db_upgrade()
/base/update/updater/utils/
H A Dpartition_utils.cpp20 #include <linux/fs.h>

Completed in 10 milliseconds

123