/foundation/filemanagement/storage_service/services/storage_daemon/utils/ |
H A D | file_utils.cpp | 192 for (struct dirent *ent = readdir(dir); ent != nullptr; ent = readdir(dir)) { in RmDirRecurse() 193 if (ent->d_type == DT_DIR) { in RmDirRecurse() 194 if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) { in RmDirRecurse() 198 if (!RmDirRecurse(path + "/" + ent->d_name)) { in RmDirRecurse() 204 if (unlink((path + "/" + ent->d_name).c_str())) { in RmDirRecurse() 205 LOGE("failed to unlink file %{public}s, errno %{public}d", ent->d_name, errno); in RmDirRecurse() 290 for (struct dirent *ent in GetSubDirs() [all...] |
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | container.cpp | 240 struct dirent* ent; in IsFontFileExistInPath() local 253 while ((ent = readdir(dir)) != nullptr) { in IsFontFileExistInPath() 254 if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) { in IsFontFileExistInPath() 257 if (strcmp(ent->d_name, "flag") == 0) { in IsFontFileExistInPath() 259 } else if (strcmp(ent->d_name, "fonts") == 0) { in IsFontFileExistInPath() 275 struct dirent* ent; in GetFontFamilyName() local 279 while ((ent = readdir(dir)) != nullptr) { in GetFontFamilyName() 280 if (strcmp(ent->d_name, ".") == 0 || strcmp(ent in GetFontFamilyName() [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/common/ |
H A D | help_utils.cpp | 187 for (struct dirent *ent = readdir(dir); ent != nullptr; ent = readdir(dir)) { in RmDirRecurse() 188 if (ent->d_type == DT_DIR) { in RmDirRecurse() 189 if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) { in RmDirRecurse() 193 if (!RmDirRecurse(path + "/" + ent->d_name)) { in RmDirRecurse() 198 if (unlink((path + "/" + ent->d_name).c_str())) { in RmDirRecurse()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_manager_service.cpp | 312 dirent *ent = nullptr; in InstallAllSystemBundle() local 319 while ((ent = readdir(dir)) != nullptr) { in InstallAllSystemBundle() 320 if ((strcmp(ent->d_name, ".") == 0) || (strcmp(ent->d_name, "..")) == 0) { in InstallAllSystemBundle() 324 InstallSystemBundle(SYSTEM_BUNDLE_PATH, ent->d_name); in InstallAllSystemBundle() 326 InstallSystemBundle(THIRD_SYSTEM_BUNDLE_PATH, ent->d_name); in InstallAllSystemBundle() 382 dirent *ent = nullptr; in ScanAppDir() local 394 while ((ent = readdir(dir)) != nullptr) { in ScanAppDir() 395 if ((strcmp(ent->d_name, ".") == 0) || (strcmp(ent in ScanAppDir() 496 dirent *ent = nullptr; ReloadBundleInfo() local [all...] |
H A D | gt_bundle_manager_service.cpp | 616 dirent *ent = nullptr; in ScanThirdApp() local 632 while ((ent = readdir(dir)) != nullptr) { in ScanThirdApp() 639 if (strcpy_s(bundleName, MAX_BUNDLE_NAME_LEN + 1, ent->d_name) != 0) { in ScanThirdApp() 1241 struct dirent *ent = nullptr; in QueryPreAppInfo() local 1255 while ((ent = readdir(dir)) != nullptr) { in QueryPreAppInfo() 1260 if (strcpy_s(fileName, MAX_NAME_LEN + 1, ent->d_name) != 0) { in QueryPreAppInfo()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/ |
H A D | bundle_daemon_handler.cpp | 220 dirent *ent; in MoveFile() local 221 while ((ent = readdir(dir)) != nullptr) { in MoveFile() 222 if ((strcmp(ent->d_name, ".") == 0) || (strcmp(ent->d_name, "..")) == 0) { in MoveFile() 225 std::string oldFileName = std::string(realOldPath) + PATH_SEPARATOR + ent->d_name; in MoveFile() 229 std::string newFileName = std::string(newFile) + PATH_SEPARATOR + ent->d_name; in MoveFile()
|
/foundation/filemanagement/dfs_service/utils/system/src/ |
H A D | utils_directory.cpp | 316 struct dirent *ent = nullptr; in GetFilePath() local 318 while ((ent = readdir(dir)) != nullptr) { in GetFilePath() 319 auto tmpPath = std::string(name).append("/").append(ent->d_name); in GetFilePath() 320 if (strcmp(ent->d_name, "..") == 0 || strcmp(ent->d_name, ".") == 0) { in GetFilePath()
|
/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/ |
H A D | ringtone_scanner.cpp | 327 struct dirent *ent = nullptr; in WalkFileTree() local 346 while ((ent = readdir(dirPath)) != nullptr) { in WalkFileTree() 351 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) { in WalkFileTree() 354 if (strncpy_s(fName + len, FILENAME_MAX - len, ent->d_name, FILENAME_MAX - len)) { in WalkFileTree()
|
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | asset_loader.cpp | 474 auto ent = nodeComponentManager->GetEntity(i); in ImportSceneFromGltf() local 477 if (ncm->HasComponent(ent)) { in ImportSceneFromGltf() 479 auto name = ncm->Get(ent).name; in ImportSceneFromGltf() 490 ncm->Set(ent, { buf }); in ImportSceneFromGltf()
|
H A D | camera_impl.cpp | 228 auto ent = ecs0->GetEntity(); 230 if (cameraManager->HasComponent(ent)) { 231 auto data = cameraManager->Get(ent); 234 cameraManager->Set(ent, data);
|
H A D | scene_impl.cpp | 666 BASE_NS::string constructPath(CORE_NS::Entity ent) const in constructPath() 673 auto curent = ent; in constructPath() 1647 auto ent = e->GetEntity(); variable 1648 sceneHolder_->ActivateCamera(ent);
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_data_connection_test.cpp | 254 Entry ent = {KEY_3, value}; in HWTEST_F() local 255 entry.push_back(ent); in HWTEST_F()
|
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/ |
H A D | media_scanner.cpp | 809 struct dirent *ent = nullptr; in WalkFileTree() local 832 while ((ent = readdir(dirPath)) != nullptr) { in WalkFileTree() 838 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) { in WalkFileTree() 842 if (strncpy_s(fName + len, FILENAME_MAX - len, ent->d_name, FILENAME_MAX - len)) { in WalkFileTree() 856 int32_t albumId = InsertOrUpdateAlbumInfo(currentPath, parentId, ent->d_name); in WalkFileTree()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_meta_recovery.cpp | 617 struct dirent *ent = nullptr; in ScanMetaDir() local 645 while ((ent = readdir(dirPath)) != nullptr) { in ScanMetaDir() 646 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) { in ScanMetaDir() 650 if (strncpy_s(fName + len, FILENAME_MAX - len, ent->d_name, FILENAME_MAX - len)) { in ScanMetaDir() 660 int32_t cur_bucket = atoi(ent->d_name); in ScanMetaDir()
|