Home
last modified time | relevance | path

Searched refs:dp (Results 1 - 10 of 10) sorted by relevance

/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_util.cpp194 struct dirent *dp; in GetSubPath() local
195 while ((dp = readdir(dirp)) != nullptr) { in GetSubPath()
196 if (dp->d_type == DT_DIR) { in GetSubPath()
197 subPaths.push_back(dp->d_name); in GetSubPath()
212 struct dirent *dp; in GetFiles() local
213 while ((dp = readdir(dirp)) != nullptr) { in GetFiles()
214 if (dp->d_type == DT_REG) { in GetFiles()
216 auto fullName = path + "/" + dp->d_name; in GetFiles()
219 fileInfo.name = dp->d_name; in GetFiles()
295 struct dirent *dp in RemoveRWXForOthers() local
[all...]
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/
H A Dbundle_file_utils.cpp116 struct dirent *dp = nullptr; in RemoveFile() local
118 while ((dp = readdir(dir)) != nullptr) { in RemoveFile()
119 if ((strcmp(dp->d_name, ".") == 0) || (strcmp(dp->d_name, "..")) == 0) { in RemoveFile()
122 std::string dirName = std::string(path) + "/" + dp->d_name; in RemoveFile()
/foundation/arkui/ace_engine/adapter/preview/entrance/
H A Drs_dir_asset_provider.h133 DIR* dp = nullptr;
134 if (nullptr == (dp = opendir(dirPath.c_str()))) {
138 while ((dptr = readdir(dp)) != nullptr) {
143 closedir(dp);
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/src/
H A Dstore_util.cpp205 struct dirent *dp; in GetSubPath() local
206 while ((dp = readdir(dirp)) != nullptr) { in GetSubPath()
207 subPaths.push_back(dp->d_name); in GetSubPath()
221 struct dirent *dp; in GetFiles() local
222 while ((dp = readdir(dirp)) != nullptr) { in GetFiles()
224 auto fullName = path + "/" + dp->d_name; in GetFiles()
226 fileInfo.name = dp->d_name; in GetFiles()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/heif_hw_decode/common/
H A Dmock_heif_hw_decode_flow.cpp100 struct dirent *dp; in FindXpsAndIFrameFile() local
101 while ((dp = readdir(dirp)) != nullptr) { in FindXpsAndIFrameFile()
102 if (strcmp(dp->d_name, ".") == 0 || strcmp(dp->d_name, "..") == 0) { in FindXpsAndIFrameFile()
105 string path = JoinPath(source_, dp->d_name); in FindXpsAndIFrameFile()
110 string fileName(dp->d_name); in FindXpsAndIFrameFile()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dbundle_util.cpp266 dirent *dp = nullptr; in GetCurrentFolderSize() local
270 while ((dp = readdir(dir)) != nullptr) { in GetCurrentFolderSize()
271 if ((strcmp(dp->d_name, ".") == 0) || (strcmp(dp->d_name, "..")) == 0) { in GetCurrentFolderSize()
279 if (sprintf_s(filePath, PATH_LENGTH, "%s/%s", dirPath, dp->d_name) < 0) { in GetCurrentFolderSize()
962 dirent *dp = nullptr; in CheckDirIsEmpty() local
964 while ((dp = readdir(dir)) != nullptr) { in CheckDirIsEmpty()
965 if ((strcmp(dp->d_name, ".") == 0) || (strcmp(dp->d_name, "..")) == 0) { in CheckDirIsEmpty()
973 if (sprintf_s(filePath, PATH_LENGTH, "%s/%s", dirPath, dp in CheckDirIsEmpty()
[all...]
/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dfile_utils.cpp224 struct dirent *dp = nullptr; in TravelChmod() local
239 while ((dp = readdir(d)) != nullptr) { in TravelChmod()
240 if ((!strncmp(dp->d_name, skip1, strlen(skip1))) || (!strncmp(dp->d_name, skip2, strlen(skip2)))) { in TravelChmod()
243 std::string subpath = path + "/" + dp->d_name; in TravelChmod()
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
H A Dcjson_parser.cpp370 DIR* dp = nullptr; in GetFiles() local
371 if ((dp = opendir(filePath_)) == nullptr) { in GetFiles()
376 while ((dptr = readdir(dp)) != nullptr) { in GetFiles()
389 closedir(dp); in GetFiles()
/foundation/multimedia/camera_framework/test/fuzztest/timelapsephotosession_fuzzer/
H A Dtime_lapse_photo_session_fuzzer.cpp399 DepthProfile dp = cap->GetDepthProfiles()[0]; in Test3() local
402 sptr<CaptureOutput> output = manager->CreateDepthDataOutput(dp, bp); in Test3()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/
H A Ddistributed_test_tools.cpp306 struct dirent *dp = nullptr; in RemoveDir() local
333 while ((dp = readdir(dirp)) != nullptr) { in RemoveDir()
335 if ((strcmp(curDir, dp->d_name) == 0) || (strcmp(upDir, dp->d_name)) == 0) { in RemoveDir()
338 int result = sprintf_s(dirName, sizeof(dirName) - 1, "%s/%s", dir, dp->d_name); in RemoveDir()

Completed in 10 milliseconds