/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | std_directory.cpp | 94 if (dir_) { in Close() 95 dir_.reset(); in Close() 122 CORE_ASSERT_MSG(dir_, "Dir not open"); in GetEntries() 124 if (dir_) { in GetEntries() 142 DIR* dir_; member 194 if (dir_) { in Close() 195 closedir(dir_->dir_); in Close() 196 dir_.reset(); in Close() 223 if (dir_) { in GetEntries() 225 rewinddir(dir_->dir_); in GetEntries() [all …]
|
H A D | std_directory.h | 55 BASE_NS::unique_ptr<DirImpl> dir_;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | base_key.cpp | 158 GetSubDirs(dir_, files); in GetCandidateVersion() 199 auto pathTemp = dir_ + PATH_KEY_TEMP; in StoreKey() 233 auto pathTemp = dir_ + PATH_KEY_TEMP; in StoreKey() 379 if (rename((dir_ + PATH_LATEST_BACKUP).c_str(), (dir_ + PATH_LATEST).c_str()) != 0) { in StoreKey() 391 GetSubDirs(dir_, files); in StoreKey() 499 GetSubDirs(dir_, files); in StoreKey() 796 if (!IsDir(dir_)) { in StoreKey() 800 WipingActionDir(dir_); in StoreKey() 876 GetSubDirs(dir_, versions); in StoreKey() 1065 auto slashIndex = dir_.rfind('/'); in StoreKey() [all …]
|
H A D | fscrypt_key_v1_ext.cpp | 296 auto slashIndex = dir_.rfind('/'); in GetUserIdFromDir() 298 std::string last = dir_.substr(slashIndex + 1); in GetUserIdFromDir() 302 LOGI("dir_: %{public}s, get userId is %{public}d", dir_.c_str(), userId); in GetUserIdFromDir() 318 auto slashIndex = dir_.rfind('/'); in GetTypeFromDir() 320 LOGE("bad dir %{public}s", dir_.c_str()); in GetTypeFromDir() 325 LOGE("bad dir %{public}s", dir_.c_str()); in GetTypeFromDir() 329 slashIndex = dir_.rfind('/', slashIndex - 1); in GetTypeFromDir() 331 LOGE("bad dir %{public}s", dir_.c_str()); in GetTypeFromDir() 335 std::string el = dir_.substr(slashIndex + 1); // el string is like `el1/100` in GetTypeFromDir()
|
H A D | fscrypt_key_v1.cpp | 246 GetSubDirs(dir_, files); in DoDecryptClassE() 258 if (DecryptKeyBlob(auth, dir_ + "/" + it, eSecretFBE, decryptedKey)) { in DoDecryptClassE() 288 LOGI("Decrypt keyPath is %{public}s", (dir_ + PATH_LATEST).c_str()); in DecryptClassE() 321 if (!EncryptKeyBlob(auth, dir_ + PATH_LATEST, eSecretFBE, encryptedKey)) { in EncryptClassE() 327 if (!RenameKeyPath(dir_ + PATH_LATEST)) { in EncryptClassE() 370 if (!SaveKeyBlob(keyInfo_.keyDesc, dir_ + PATH_KEYDESC)) { in InstallKeyToKeyring() 412 if (!SaveKeyBlob(keyInfo_.keyDesc, dir_ + PATH_KEYDESC)) { in InstallEceSeceKeyToKeyring()
|
H A D | fscrypt_key_v2.cpp | 58 if (!SaveKeyBlob(keyInfo_.keyId, dir_ + PATH_KEYID)) { in ActiveKey()
|
/ohos5.0/base/update/updater/services/ui/view/component/ |
H A D | img_view_adapter.cpp | 81 dir_ = spec.resPath; in ImgViewAdapter() 89 LOG(DEBUG) << "dir:" << dir_ << ", imgCnt:" << imgCnt_ << ", interval:" << interval_; in ImgViewAdapter() 92 this->SetSrc(dir_.c_str()); in ImgViewAdapter() 111 if (Fs::exists(dir_)) { in GetRealImgPath() 123 std::string newPath = dir_ + "_" + iter->second + ".png"; in GetRealImgPath() 128 dir_ = newPath; in GetRealImgPath() 194 …ss << dir_ << filePrefix_ << std::setw(ANIMATION_FILE_NAME_LENGTH) << std::setfill('0') << currId_… in ShowNextImage()
|
H A D | img_view_adapter.h | 66 std::string dir_ {};
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | ohos_file.cpp | 94 if (dir_) { in Close() 95 dir_.reset(); in Close() 131 dir_ = BASE_NS::make_unique<OhosDirImpl>(path, fileList); in Open() 139 CORE_ASSERT_MSG(dir_, "Dir not open"); in GetEntries() 141 if (dir_) { in GetEntries() 142 for (int i = 0; i < static_cast<int>(dir_->fileList_.size()); i++) { in GetEntries() 143 auto path = dir_->path_ + "/" + BASE_NS::string(dir_->fileList_[i].c_str()); in GetEntries() 146 entry.name = dir_->fileList_[i].c_str(); in GetEntries()
|
H A D | ohos_file.h | 103 BASE_NS::unique_ptr<OhosDirImpl> dir_;
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_dir/ |
H A D | dir_n_exporter.cpp | 58 if (!dirEntity || !dirEntity->dir_) { in CloseSync() 64 dirEntity->dir_.reset(); in CloseSync() 82 if (dirEntity->dir_ == nullptr) { in Close() 89 DIR *dir = dirEntity->dir_.release(); in Close() 164 if (!dirEntity || !dirEntity->dir_) { in Read() 169 DIR *dir = dirEntity->dir_.get(); in Read() 217 if (!dirEntity || !dirEntity->dir_) { in ReadSync() 221 DIR *dir = dirEntity->dir_.get(); in ReadSync() 278 if (!dirEntity || !dirEntity->dir_) { in CheckDirEntity() 338 DIR *dir = dirEntity->dir_.get(); in ListFile() [all …]
|
H A D | dir_entity.h | 27 std::unique_ptr<DIR, std::function<void(DIR *)>> dir_ = { nullptr, closedir };
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/ |
H A D | media_scanner.cpp | 48 dir_ = path; in MediaScannerObj() 105 MEDIA_INFO_LOG("scan dir %{public}s", dir_.c_str()); in ScanDir() 875 if (ScannerUtils::IsDirHiddenRecursive(dir_, skipPhoto_)) { in ScanDirInternal() 876 MEDIA_ERR_LOG("the dir %{private}s is hidden", dir_.c_str()); in ScanDirInternal() 878 {KEY_OPT_FILE, dir_}, {KEY_OPT_TYPE, OptType::SCAN}}; in ScanDirInternal() 887 int32_t err = mediaScannerDb_->ReadAlbums(dir_, albumMap_); in ScanDirInternal() 896 err = WalkFileTree(dir_, NO_PARENT); in ScanDirInternal() 900 {KEY_OPT_FILE, dir_}, {KEY_OPT_TYPE, OptType::SCAN}}; in ScanDirInternal() 916 {KEY_OPT_FILE, dir_}, {KEY_OPT_TYPE, OptType::SCAN}}; in ScanDirInternal() 969 dir_ = move(realPath); in ScanError() [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | scene_persistent_storage_test.cpp | 90 std::string dir_ = "0/Storage/DownLoad"; variable 91 scenePersistentStorage_.InitDir(dir_);
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | fscrypt_key_v1_ext.h | 30 dir_ = dir; in SetDir() 53 std::string dir_; variable
|
H A D | base_key.h | 74 return dir_; in GetDir() 85 std::string dir_ {};
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fscrypt_key_v1_ext_test/ |
H A D | fscrypt_key_v1_ext_test.cpp | 469 ext.dir_ = "test"; 472 ext.dir_ = "/data/foo/bar/el1/100"; 487 ext.dir_ = "test"; 490 ext.dir_ = "data/"; 493 ext.dir_ = "/data"; 496 ext.dir_ = "/data/foo/bar/el1/100"; 499 ext.dir_ = "/data/foo/bar";
|
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/ |
H A D | ringtone_scanner.cpp | 109 dir_ = path; in RingtoneScannerObj() 200 dir_ = move(realPath); in BootScan() 228 RINGTONE_INFO_LOG("scan dir %{private}s", dir_.c_str()); in ScanDir() 242 if (RingtoneScannerUtils::IsDirHiddenRecursive(dir_)) { in ScanDirInternal() 243 RINGTONE_ERR_LOG("the dir %{private}s is hidden", dir_.c_str()); in ScanDirInternal() 248 auto err = WalkFileTree(dir_); in ScanDirInternal()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | open_dir.cpp | 66 dirEntity->dir_.swap(dir); in Sync() 121 dirEntity->dir_.swap(dir); in Async()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/mock/ |
H A D | base_key_mock.cpp | 25 BaseKey::BaseKey(const std::string &dir, uint8_t keyLen) : dir_(dir), keyLen_(keyLen), in BaseKey()
|
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_scanner/include/ |
H A D | ringtone_scanner.h | 96 std::string dir_; variable
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_scanner/include/scanner/ |
H A D | media_scanner.h | 134 std::string dir_; variable
|
/ohos5.0/foundation/multimedia/ringtone_library/test/unittest/ringtone_scanner_test/src/ |
H A D | ringtone_scanner_test.cpp | 155 ringtoneScannerObj.dir_ = "scanner_ScanDir_test_001/.test";
|