Home
last modified time | relevance | path

Searched refs:storageId (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_event.cpp126 uint32_t storageId{0}; in SendStoreAdded() local
127 if (!handleptr_->TryAddExternalStorage(fsUuid, storageId)) { in SendStoreAdded()
131 MEDIA_INFO_LOG("SendStoreAdded storageId[%{public}d]", storageId); in SendStoreAdded()
132 mtpContextPtr_->storageInfoID = storageId; in SendStoreAdded()
142 uint32_t storageId{0}; in SendStoreRemoved() local
143 if (!handleptr_->TryRemoveExternalStorage(fsUuid, storageId)) { in SendStoreRemoved()
147 MEDIA_INFO_LOG("SendStoreRemoved storageId[%{public}d]", storageId); in SendStoreRemoved()
148 mtpContextPtr_->storageInfoID = storageId; in SendStoreRemoved()
H A Dmtp_media_library.cpp1060 return AddExternalStorage(fsUuid, storageId); in TryAddExternalStorage()
1069 storageId = 0; in TryRemoveExternalStorage()
1074 storageId = it.first; in TryRemoveExternalStorage()
1075 storageIdToPathMap.erase(storageId); in TryRemoveExternalStorage()
1079 CHECK_AND_RETURN_RET_LOG(storageId != 0, false, "external storage is not exists"); in TryRemoveExternalStorage()
1084 auto storage = manager->GetStorage(storageId); in TryRemoveExternalStorage()
1096 bool MtpMediaLibrary::AddExternalStorage(const std::string &fsUuid, uint32_t &storageId) in AddExternalStorage() argument
1102 storageId = it.first; in AddExternalStorage()
1133 storageId = id; in AddExternalStorage()
1173 uint32_t storageId; in GetExternalStorages() local
[all …]
H A Dmtp_operation_utils.cpp981 bool MtpOperationUtils::TryAddExternalStorage(const std::string &fsUuid, uint32_t &storageId) in TryAddExternalStorage() argument
985 mtpMediaLibrary_->TryAddExternalStorage(fsUuid, storageId)); in TryAddExternalStorage()
989 bool MtpOperationUtils::TryRemoveExternalStorage(const std::string &fsUuid, uint32_t &storageId) in TryRemoveExternalStorage() argument
993 return mtpMediaLibrary_->TryRemoveExternalStorage(fsUuid, storageId); in TryRemoveExternalStorage()
H A Dmtp_data_utils.cpp749 …map<uint32_t, std::string>::iterator it, shared_ptr<vector<Property>> &outProps, int32_t storageId) in GetMtpOneRowProp() argument
776 SetMtpOneDefaultlPropList(it->first, property, outProps, storageId); in GetMtpOneRowProp()
979 uint16_t property, std::shared_ptr<std::vector<Property>> &outProps, int32_t storageId) in SetMtpOneDefaultlPropList() argument
1001 prop.currentValue->bin_.i32 = storageId; in SetMtpOneDefaultlPropList()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_mtp/include/
H A Dmtp_media_library.h67 EXPORT bool TryAddExternalStorage(const std::string &fsUuid, uint32_t &storageId);
68 EXPORT bool TryRemoveExternalStorage(const std::string &fsUuid, uint32_t &storageId);
94 bool AddExternalStorage(const std::string &fsUuid, uint32_t &storageId);
H A Dmtp_operation_utils.h62 bool TryAddExternalStorage(const std::string &fsUuid, uint32_t &storageId);
63 bool TryRemoveExternalStorage(const std::string &fsUuid, uint32_t &storageId);
H A Dmtp_data_utils.h206 int32_t storageId);
210 uint16_t property, std::shared_ptr<std::vector<Property>> &outProps, int32_t storageId);
/ohos5.0/base/tee/tee_client/services/teecd/src/
H A Dfs_work_agent.c419 uint32_t storageId = GetCurrentStorageId(); in JoinFileName() local
425 if (storageId == TEE_OBJECT_STORAGE_CE) { in JoinFileName()
680 SetCurrentStorageId(transControl->storageId); in OpenWork()
855 SetCurrentStorageId(transControl->storageId); in RemoveWork()
878 SetCurrentStorageId(transControl->storageId); in TruncateWork()
900 SetCurrentStorageId(transControl->storageId); in RenameWork()
1018 SetCurrentStorageId(transControl->storageId); in CopyWork()
1071 SetCurrentStorageId(transControl->storageId); in FileAccessWork()
/ohos5.0/base/tee/tee_client/services/teecd/include/
H A Dfs_work_agent.h83 uint32_t storageId; member