Home
last modified time | relevance | path

Searched refs:files (Results 1 – 25 of 206) sorted by relevance

123456789

/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cleaner/
Dapp_event_log_cleaner.cpp37 std::vector<std::string> files; in ClearSpace() local
38 FileUtil::GetDirFiles(path_, files); in ClearSpace()
41 sort(files.begin(), files.end()); in ClearSpace()
44 while (!files.empty() && nowSize > maxSize) { in ClearSpace()
45 std::string delFile = files[0]; in ClearSpace()
46 files.erase(files.begin()); in ClearSpace()
/base/update/updater/interfaces/kits/packages/
Dpackage.cpp30 std::vector<std::pair<std::string, ComponentInfo>> &files, in GetUpgradePkgInfo() argument
54 files.resize(pkgInfoExt->entryCount); in GetUpgradePkgInfo()
56 files[i].first.assign(compInfo[i].filePath); in GetUpgradePkgInfo()
57 ComponentInfo* info = &files[i].second; in GetUpgradePkgInfo()
78 std::vector<std::pair<std::string, ZipFileInfo>> &files, in GetZipPkgInfo() argument
86 files.resize(pkgInfoExt->entryCount); in GetZipPkgInfo()
88 files[i].first.assign(compInfo[i].filePath); in GetZipPkgInfo()
89 ZipFileInfo* info = &files[i].second; in GetZipPkgInfo()
98 std::vector<std::pair<std::string, Lz4FileInfo>> &files, in GetLz4PkgInfo() argument
106 files.resize(pkgInfoExt->entryCount); in GetLz4PkgInfo()
[all …]
/base/update/updater/services/applypatch/
Dstore.cpp33 std::vector<std::string> files; in DoFreeSpace() local
34 if (GetFilesFromDirectory(directoryPath, files, true) <= 0) { in DoFreeSpace()
38 for (const auto &file : files) { in DoFreeSpace()
88 std::vector<std::string> files {}; in CreateNewSpace() local
89 if (GetFilesFromDirectory(dirPath, files) < 0) { in CreateNewSpace()
92 if (files.empty()) { in CreateNewSpace()
95 std::vector<std::string>::iterator iter = files.begin(); in CreateNewSpace()
96 while (iter != files.end()) { in CreateNewSpace()
102 files.clear(); in CreateNewSpace()
/base/update/updater/test/unittest/package/
Dpkg_manager_unittest.cpp97 …tUpgradePkgInfo(UpgradePkgInfo &pkgInfo, std::vector<std::pair<std::string, ComponentInfo>> &files) in GetUpgradePkgInfo() argument
110 files.resize(testFileNames_.size()); in GetUpgradePkgInfo()
114 files[i].first = filePath; in GetUpgradePkgInfo()
116 ComponentInfo* info = &files[i].second; in GetUpgradePkgInfo()
136 std::vector<std::pair<std::string, ComponentInfo>> files; in TestPackagePack() local
137 GetUpgradePkgInfo(pkgInfo, files); in TestPackagePack()
140 int32_t ret = pkgManager_->CreatePackage(packagePath, "", &pkgInfo.pkgInfo, files); in TestPackagePack()
142 … ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), &pkgInfo.pkgInfo, files); in TestPackagePack()
151 std::vector<std::pair<std::string, ComponentInfo>> files; in TestPackagePackFileNotExist() local
152 GetUpgradePkgInfo(pkgInfo, files); in TestPackagePackFileNotExist()
[all …]
/base/security/selinux/sepolicy/base/public/
Dattributes23 # Type of all virtual file system files.
30 # Type of all proc files.
34 # Type of all common files.
39 # Type of all rootfs files.
43 # Type of all system files.
47 # Type of all sys_prod files.
51 # Type of all vendor files.
55 # Type of all chip_prod files.
64 # Types of all files in the /data directory.
/base/hiviewdfx/faultloggerd/utils/
Ddirectory_ex.cpp81 void GetDirFiles(const string& path, vector<string>& files) in GetDirFiles() argument
100 GetDirFiles(pathStringWithDelimiter, files); in GetDirFiles()
102 files.push_back(IncludeTrailingPathDelimiter(path) + string(ptr->d_name)); in GetDirFiles()
184 vector<string> files; in IsEmptyFolder() local
185 GetDirFiles(path, files); in IsEmptyFolder()
186 return files.empty(); in IsEmptyFolder()
191 vector<string> files; in GetFolderSize() local
193 GetDirFiles(path, files); in GetFolderSize()
195 for (auto& file : files) { in GetFolderSize()
/base/startup/init/services/etc/appender/
Dfile_appender.py45 if options.files:
46 for append_f in options.files:
62 if options.files:
63 depfile_deps = ([options.source_file] + options.files)
Dfile_appender.gni17 # Append something (files or lines) to a file and install it.
24 # files: files to be appended to the end of source file (Optional)
31 # files = [ "cust_passwd", "passwd2" ]
35 # It will append files and lines to source passwd file after deps targets
67 if (defined(invoker.files)) {
68 foreach(file, invoker.files) {
/base/startup/init/services/init/standard/
Dinit.c285 CfgFiles *files = GetCfgFiles("etc/param"); in InitLoadParamFiles() local
286 for (int i = MAX_CFG_POLICY_DIRS_CNT - 1; files && i >= 0; i--) { in InitLoadParamFiles()
287 if (files->paths[i]) { in InitLoadParamFiles()
288 LoadDefaultParams(files->paths[i], LOAD_PARAM_ONLY_ADD); in InitLoadParamFiles()
291 FreeCfgFiles(files); in InitLoadParamFiles()
373 CfgFiles *files = GetCfgFiles("etc/init"); in ParseInitCfgByPriority() local
374 for (int i = 0; files && i < MAX_CFG_POLICY_DIRS_CNT; i++) { in ParseInitCfgByPriority()
375 if (files->paths[i]) { in ParseInitCfgByPriority()
376 if (ReadFileInDir(files->paths[i], ".cfg", ParseInitCfg, NULL) < 0) { in ParseInitCfgByPriority()
381 FreeCfgFiles(files); in ParseInitCfgByPriority()
/base/security/selinux/
D.gitignore8 # Compiled Object files
23 # Fortran module files
/base/security/device_security_level/
D.gitignore10 # Compiled Object files
25 # Fortran module files
/base/useriam/user_auth_framework/
D.gitignore10 # Compiled Object files
25 # Fortran module files
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/
Dfile_util.cpp107 void GetDirFiles(const std::string& dir, std::vector<std::string>& files) in GetDirFiles() argument
121 files.push_back(filePath); in GetDirFiles()
129 std::vector<std::string> files; in GetDirSize() local
130 GetDirFiles(dir, files); in GetDirSize()
133 for (auto& file : files) { in GetDirSize()
/base/telephony/core_service/services/sim/src/
Dusim_dialling_numbers_service.cpp65 std::vector<std::string> &files = object->fileResults; in ProcessPbrLoadDone() local
66 GeneratePbrFile(files); in ProcessPbrLoadDone()
151 std::map<int, std::shared_ptr<TagData>> files = pbrFiles_.at(recId)->fileIds_; in LoadDiallingNumberFiles() local
152 if (files.empty() || !files.size()) { in LoadDiallingNumberFiles()
158 int extEf = files.at(TAG_SIM_USIM_EXT1) != nullptr ? files.at(TAG_SIM_USIM_EXT1)->fileId : 0; in LoadDiallingNumberFiles()
159 if (extEf >= 0 && files.at(TAG_SIM_USIM_ADN) != nullptr) { in LoadDiallingNumberFiles()
161 int efId = files.at(TAG_SIM_USIM_ADN)->fileId; in LoadDiallingNumberFiles()
170 bool fileNull = files.at(TAG_SIM_USIM_ADN) == nullptr; in LoadDiallingNumberFiles()
/base/startup/appspawn_lite/
DREADME.md18 ├── include # Header files for the appspawn_lite module
19 ├── src # Source files for the appspawn_lite module
20 └── test # Source files of the test cases for the appspawn_lite module
/base/startup/init/test/exec_test/
Dfd_holder_test.c77 char *files[] = {"/data/test/1", "/data/test/2"}; in main() local
78 SaveFds("fd_holder_test", FD_COUNT, (char **)files); in main()
/base/request/request/upload/interfaces/kits/napi/src/
Djs_util.cpp225 if (config.files.empty()) { in CheckConfig()
280 napi_value files = GetNamedProperty(env, jsConfig, "files"); in SetFiles() local
281 if (files == nullptr) { in SetFiles()
285 config.files = Convert2FileVector(env, files, config.protocolVersion); in SetFiles()
345 napi_value files = GetNamedProperty(env, jsConfig, "files"); in ToUploadConfig() local
346 if (files == nullptr) { in ToUploadConfig()
349 config.files = Convert2FileVector(env, files, config.protocolVersion); in ToUploadConfig()
366 napi_set_named_property(env, jsConfig, "files", Convert2JSFileVector(env, config.files)); in Convert2JSUploadConfig()
461 std::vector<Upload::File> files; in Convert2FileVector() local
477 files.push_back(file); in Convert2FileVector()
[all …]
/base/hiviewdfx/faultloggerd/services/
Dfault_logger_daemon.cpp448 std::vector<std::string> files; in RemoveTempFileIfNeed() local
449 OHOS::GetDirFiles(faultLoggerConfig_->GetLogFilePath(), files); in RemoveTempFileIfNeed()
450 currentLogCounts = (int)files.size(); in RemoveTempFileIfNeed()
457 std::sort(files.begin(), files.end(), in RemoveTempFileIfNeed()
475 for (unsigned int index = (unsigned int)startIndex; index < files.size(); index++) { in RemoveTempFileIfNeed()
477 int err = stat(files[index].c_str(), &st); in RemoveTempFileIfNeed()
486 OHOS::RemoveFile(files[index]); in RemoveTempFileIfNeed()
488 FAULTLOGGERD_TAG.c_str(), files[index].c_str()); in RemoveTempFileIfNeed()
/base/useriam/face_auth/ui/Settings_FaceAuth/.idea/
D.gitignore1 # Default ignored files
/base/hiviewdfx/hiview/build/
Drun_oem_hook.py23 for relpath, dirs, files in os.walk(path):
24 if "oem_hook.py" in files:
/base/hiviewdfx/hiview/adapter/utility/
Dfile_util.cpp189 void GetDirFiles(const std::string& path, std::vector<std::string>& files) in GetDirFiles() argument
191 files.clear(); in GetDirFiles()
193 files.push_back(p.path().string()); in GetDirFiles()
241 vector<string> files; in GetFolderSize() local
243 GetDirFiles(path, files); in GetFolderSize()
245 for (auto& file : files) { in GetFolderSize()
/base/security/selinux/sepolicy/ohos_policy/multimedia/player/system/
Dsystem_core_hap.te16 …pid=6124 comm="ohos.acts.multi" path="/data/service/el2/100/hmdfs/account/files/Pictures/SR001PRO/…
18 …pid=6124 comm="ohos.acts.multi" path="/data/service/el2/100/hmdfs/account/files/Documents/Dynamic0…
20 #avc: denied { getattr } for pid=6124 comm="ohos.acts.multi" path="/storage/media/local/files/Pi…
/base/update/updater/test/unittest/script/
Dscript_unittest.h26 std::vector<std::pair<std::string, ZipFileInfo>> &files) override in CreatePackage() argument
31 std::vector<std::pair<std::string, ComponentInfo>> &files) override in CreatePackage() argument
36 std::vector<std::pair<std::string, Lz4FileInfo>> &files) override in CreatePackage() argument
/base/global/i18n_lite/interfaces/kits/js/builtin/
DCMakeLists.txt22 # header files
27 # source files
/base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin/
DCMakeLists.txt24 # header files
28 # source files

123456789