/base/location/services/location_locator/locator/source/ |
D | location_config_manager.cpp | 136 std::ifstream fs(GetLocationSwitchConfigPath()); in GetLocationSwitchState() local 137 if (!fs.is_open()) { in GetLocationSwitchState() 142 while (std::getline(fs, line)) { in GetLocationSwitchState() 153 fs.clear(); in GetLocationSwitchState() 154 fs.close(); in GetLocationSwitchState() 232 std::fstream fs(GetLocationSwitchConfigPath()); in SetLocationSwitchState() local 237 if (!fs.is_open()) { in SetLocationSwitchState() 245 fs.write(content.c_str(), content.length()); in SetLocationSwitchState() 246 fs.clear(); in SetLocationSwitchState() 247 fs.close(); in SetLocationSwitchState() [all …]
|
/base/security/asset/services/db_operator/src/test/ |
D | test_table.rs | 16 use std::fs; 29 fs::create_dir_all("/data/asset_test/0").unwrap(); in create_delete_table() 41 fs::remove_dir_all("/data/asset_test/0").unwrap(); in create_delete_table() 46 fs::create_dir_all("/data/asset_test/0").unwrap(); in table_restore() 54 fs::copy("/data/asset_test/0/asset.db", "/data/asset_test/0/asset.db.backup").unwrap(); in table_restore() 57 fs::remove_file("/data/asset_test/0/asset.db").unwrap(); in table_restore() 58 fs::copy("/data/asset_test/0/asset.db.backup", "/data/asset_test/0/asset.db").unwrap(); in table_restore() 64 fs::remove_dir_all("/data/asset_test/0").unwrap(); in table_restore() 69 fs::create_dir_all("/data/asset_test/0").unwrap(); in insert_test_data() 100 fs::create_dir_all("/data/asset_test/0").unwrap(); in execute_sql() [all …]
|
D | test_database.rs | 18 fs::{self, OpenOptions}, 46 fs::create_dir_all(path).unwrap(); in create_dir() 53 fs::remove_dir_all(path).unwrap(); in remove_dir() 76 fs::copy(&db.path, &db.backup_path).unwrap(); in backup_db() 81 fs::create_dir_all("/data/asset_test/0").unwrap(); in create_and_drop_database() 90 fs::create_dir_all("/data/asset_test/0").unwrap(); in database_version() 100 fs::create_dir_all("/data/asset_test/0").unwrap(); in error_sql() 109 fs::create_dir_all("/data/asset_test/0").unwrap(); in create_delete_asset_table()
|
/base/request/request/test/unittest/js_test/requestPermissonTest/ |
D | Permission.test.js | 19 import fs from '@ohos.file.fs'; 24 let file = fs.openSync(cacheDir + '/test.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 25 fs.closeSync(file) 30 if (fs.accessSync(cacheDir + '/test.txt')) { 31 fs.unlinkSync(cacheDir + '/test.txt')
|
/base/request/request/test/unittest/common/napi/requestTest/ |
D | RequestUploadTest.js | 19 import fs from '@ohos.file.fs'; 38 if (fs.accessSync(cacheDir + '/test.txt')) { 39 fs.unlinkSync(cacheDir + '/test.txt'); 276 let file = fs.openSync(cacheDir + '/test.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 277 fs.closeSync(file); 316 let file = fs.openSync(cacheDir + '/test.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 317 fs.closeSync(file); 354 let file = fs.openSync(cacheDir + '/test.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 355 fs.closeSync(file); 389 let file = fs.openSync(cacheDir + '/test.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); [all …]
|
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/ |
D | lib_event_handler_checker_test.cpp | 82 auto fs = []() { in __anon907ffdbb0102() variable 106 handler->PostTask(fs); 134 auto fs = []() { in __anon907ffdbb0502() variable 158 handler->PostTask(fs); 185 auto fs = []() { in __anon907ffdbb0902() variable 209 handler->PostTask(fs);
|
/base/request/request/test/unittest/js_test/requestAgentTaskTest/entry/src/main/ets/test/ |
D | RequestCreateTask.test.ets | 19 import fs from '@ohos.file.fs'; 37 if (fs.accessSync(cacheDir + '/test.txt')) { 38 fs.unlinkSync(cacheDir + '/test.txt'); 140 let file = fs.openSync(cacheDir + '/test.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 141 fs.closeSync(file); 171 if (fs.accessSync(`${cacheDir}/test.txt`)) { 262 let file = fs.openSync(cacheDir + '/test.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 263 fs.closeSync(file); 559 let file = fs.openSync(cacheDir + '/test.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 560 fs.closeSync(file); [all …]
|
/base/request/request/services/src/task/ |
D | files.rs | 15 use std::fs::{File, OpenOptions}; 19 use ylong_runtime::fs::File as AsyncFile; 60 for (idx, fs) in config.file_specs.iter().enumerate() { in open_task_files() 63 let file = if fs.is_user_file { in open_task_files() 64 match fs.fd { in open_task_files() 73 open_file_readonly(uid, bundle, &fs.path), in open_task_files() 94 open_file_readwrite(uid, bundle, &fs.path), in open_task_files()
|
/base/hiviewdfx/faultloggerd/test/unittest/stacktrace_rust/ |
D | main.rs | 18 use std::fs; 19 use std::fs::File; 60 let trace = fs::read_to_string(path).unwrap(); in test_print_trace()
|
/base/security/asset/frameworks/os_dependency/file/src/ |
D | lib.rs | 18 use std::{fs, path::Path}; 45 match fs::create_dir(path) { in create_user_db_dir() 62 match fs::remove_dir_all(path) { in delete_user_db_dir()
|
/base/startup/init/services/etc/ |
D | init.cfg | 75 "mount pstore pstore /sys/fs/pstore nodev noexec nosuid", 76 "chown system log /sys/fs/pstore", 77 "chmod 0555 /sys/fs/pstore", 86 "trigger early-fs", 87 "trigger fs", 88 "trigger post-fs", 89 "trigger late-fs", 90 "trigger post-fs-data", 96 "name" : "fs", 100 "name" : "post-fs", [all …]
|
/base/request/request/test/unittest/js_test/requestSystemQueryTest/entry/src/main/ets/test/ |
D | RequestSystemQuery.test.ets | 19 import fs from '@ohos.file.fs'; 37 if (fs.accessSync(cacheDir + '/test.txt')) { 38 fs.unlinkSync(cacheDir + '/test.txt'); 40 if (fs.accessSync(cacheDir + '/test.apk')) { 41 fs.unlinkSync(cacheDir + '/test.apk'); 238 let file1 = fs.openSync(cacheDir + '/test1.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 239 let file2 = fs.openSync(cacheDir + '/test2.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 240 fs.closeSync(file1); 241 fs.closeSync(file2);
|
/base/security/code_signature/services/key_enable/cfg/disable_xpm/ |
D | key_enable.cfg | 3 "name" : "post-fs-data", 5 "write /proc/sys/fs/verity/require_signatures 1",
|
/base/security/code_signature/services/key_enable/cfg/enable_xpm/level5/ |
D | key_enable.cfg | 3 "name" : "post-fs-data", 5 "write /proc/sys/fs/verity/require_signatures 1",
|
/base/security/code_signature/services/key_enable/cfg/enable_xpm/level4/ |
D | key_enable.cfg | 3 "name" : "post-fs-data", 5 "write /proc/sys/fs/verity/require_signatures 1",
|
/base/security/code_signature/services/key_enable/cfg/enable_xpm/level1/ |
D | key_enable.cfg | 3 "name" : "post-fs-data", 5 "write /proc/sys/fs/verity/require_signatures 1",
|
/base/security/code_signature/services/key_enable/cfg/enable_xpm/level2/ |
D | key_enable.cfg | 3 "name" : "post-fs-data", 5 "write /proc/sys/fs/verity/require_signatures 1",
|
/base/security/code_signature/services/key_enable/cfg/enable_xpm/level3/ |
D | key_enable.cfg | 3 "name" : "post-fs-data", 5 "write /proc/sys/fs/verity/require_signatures 1",
|
/base/theme/wallpaper_mgr/utils/src/ |
D | file_deal.cpp | 28 namespace fs = std::filesystem; 131 fs::path file(filePath); in IsZipFile() 132 if (fs::exists(file) && fs::is_regular_file(file)) { in IsZipFile()
|
/base/update/sys_installer/services/module_update/util/src/ |
D | module_file.cpp | 68 for (const auto &fs : FS_TYPES) { in RetrieveFsType() local 69 uint8_t buf[fs.len]; in RetrieveFsType() 70 if (!ReadFullyAtOffset(fd, buf, fs.len, imageOffset + fs.offset)) { in RetrieveFsType() 74 if (memcmp(buf, fs.magic, fs.len) == 0) { in RetrieveFsType() 75 return fs.type; in RetrieveFsType()
|
/base/security/selinux_adapter/ |
D | README.md | 66 ….566:4): avc: denied { open } for pid=1658 comm="setenforce" path="/sys/fs/selinux/enforce" dev… 72 path="/sys/fs/selinux/enforce" #被访问客体为/sys/fs/selinux/enforce 86 ….566:4): avc: denied { open } for pid=1658 comm="setenforce" path="/sys/fs/selinux/enforce" dev…
|
/base/tee/tee_client/services/teecd/build/standard/init/ |
D | teecd.cfg | 14 "name" : "post-fs-data", 20 "name" : "early-fs",
|
/base/hiviewdfx/faultloggerd/interfaces/rust/panic_handler/ |
D | lib.rs | 22 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/test/unittest/js_test/requestTest/ |
D | RequestTask.test.js | 19 import fs from '@ohos.file.fs'; 36 if (fs.accessSync(cacheDir + '/test.txt')) { 37 fs.unlinkSync(cacheDir + '/test.txt') 39 if (fs.accessSync(cacheDir + '/test.apk')) { 40 fs.unlinkSync(cacheDir + '/test.apk') 131 … let file = fs.openSync(cacheDir + '/' + fileName, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); 132 fs.closeSync(file); 235 if (fs.accessSync(`${cacheDir}/test.txt`)) { 770 if (fs.accessSync(`${cacheDir}/test.txt`)) {
|
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/test/ |
D | test_util.cpp | 266 std::ofstream fs(file, std::ios::out); in WriteFile() local 267 if (fs.is_open()) { in WriteFile() 268 fs << line << "\n"; in WriteFile() 269 fs.close(); in WriteFile()
|