Home
last modified time | relevance | path

Searched refs:assetKey (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/src/adaptor/
H A Dasset_change_timer.cpp46 StartTimer(sessionId, assetKey, watcher); in OnAssetChanged()
52 std::string key = sessionId + ASSET_SEPARATOR + assetKey; in StartTimer()
67 assetKey.c_str()); in ProcessTask()
68 StopTimer(sessionId, assetKey); in ProcessTask()
69 uint32_t status = HandleAssetChanges(sessionId, assetKey); in ProcessTask()
72 sessionId.c_str(), assetKey.c_str()); in ProcessTask()
73 watcher->OnChanged(sessionId, { assetKey }); in ProcessTask()
80 std::string key = sessionId + ASSET_SEPARATOR + assetKey; in StopTimer()
89 if (!GetAssetValue(sessionId, assetKey, assetValue)) { in HandleAssetChanges()
91 sessionId.c_str(), assetKey.c_str()); in HandleAssetChanges()
[all …]
H A Ddistributed_object_impl.cpp118 uint32_t DistributedObjectImpl::GetAssetValue(const std::string &assetKey, Asset &assetValue) in GetAssetValue() argument
121 auto status = GetDouble(assetKey + STATUS_SUFFIX, assetStatus); in GetAssetValue()
125 status = GetString(assetKey + NAME_SUFFIX, assetValue.name); in GetAssetValue()
127 status = GetString(assetKey + URI_SUFFIX, assetValue.uri); in GetAssetValue()
129 status = GetString(assetKey + PATH_SUFFIX, assetValue.path); in GetAssetValue()
131 status = GetString(assetKey + CREATE_TIME_SUFFIX, assetValue.createTime); in GetAssetValue()
133 status = GetString(assetKey + MODIFY_TIME_SUFFIX, assetValue.modifyTime); in GetAssetValue()
135 status = GetString(assetKey + SIZE_SUFFIX, assetValue.size); in GetAssetValue()
152 uint32_t DistributedObjectImpl::BindAssetStore(const std::string &assetKey, AssetBindInfo &bindInfo) in BindAssetStore() argument
155 auto status = GetAssetValue(assetKey, assetValue); in BindAssetStore()
H A Ddistributed_object_store_impl.cpp158 …[=](const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> obje… in Watch() argument
160 assetChangeTimer->OnAssetChanged(sessionId, assetKey, objectWatcher); in Watch()
224 std::string assetKey; in OnChanged() local
225 if (FindChangedAssetKey(str, assetKey)) { in OnChanged()
226 transferKeys.insert(assetKey); in OnChanged()
233 for (auto &assetKey : transferKeys) { in OnChanged() local
234 assetChangeCallback_(sessionId, assetKey, objectWatcher_); in OnChanged()
242 bool WatcherProxy::FindChangedAssetKey(const std::string &changedKey, std::string &assetKey) in FindChangedAssetKey() argument
247 assetKey = changedKey.substr(0, dotPos); in FindChangedAssetKey()
/ohos5.0/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/include/adaptor/
H A Dasset_change_timer.h28 …const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher);
36 …void StartTimer(const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectW…
37 void StopTimer(const std::string &sessionId, const std::string &assetKey);
39 …const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher);
40 uint32_t HandleAssetChanges(const std::string &sessionId, const std::string &assetKey);
41 … bool GetAssetValue(const std::string &sessionId, const std::string &assetKey, Asset &assetValue);
H A Ddistributed_object_impl.h40 uint32_t BindAssetStore(const std::string &assetKey, AssetBindInfo &bindInfo) override;
43 uint32_t GetAssetValue(const std::string &assetKey, Asset &assetValue);
H A Ddistributed_objectstore_impl.h68 const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher)>;
75 bool FindChangedAssetKey(const std::string &changedKey, std::string &assetKey);
/ohos5.0/foundation/filemanagement/dfs_service/adapter/cloud_adapter_example/src/
H A Dcloud_asset_read_session_impl.cpp23 std::string assetKey, in CloudAssetReadSessionImpl() argument
25 : CloudAssetReadSession(recordType, recordId, assetKey, assetPath) in CloudAssetReadSessionImpl()
H A Dcloud_database_impl.cpp30 std::string assetKey, in NewAssetReadSession() argument
33 return std::make_shared<CloudAssetReadSessionImpl>(recordType, recordId, assetKey, assetPath); in NewAssetReadSession()
/ohos5.0/foundation/filemanagement/dfs_service/frameworks/native/cloud_file_kit_inner/src/
H A Dcloud_database.cpp28 std::string assetKey, in NewAssetReadSession() argument
31 return std::make_shared<CloudAssetReadSession>(recordType, recordId, assetKey, assetPath); in NewAssetReadSession()
H A Dcloud_asset_read_session.cpp24 std::string assetKey, in CloudAssetReadSession() argument
/ohos5.0/foundation/filemanagement/dfs_service/adapter/cloud_adapter_example/include/
H A Dcloud_asset_read_session_impl.h26 std::string assetKey,
H A Dcloud_database_impl.h27 std::string assetKey,
/ohos5.0/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloud_file_kit_inner/
H A Dcloud_asset_read_session.h27 …CloudAssetReadSession(std::string recordType, std::string recordId, std::string assetKey, std::str…
H A Dcloud_database.h31 std::string assetKey,
/ohos5.0/foundation/distributeddatamgr/data_object/interfaces/innerkits/
H A Ddistributed_object.h164 virtual uint32_t BindAssetStore(const std::string &assetKey, AssetBindInfo &bindInfo) = 0;
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/
H A Dfile_operations_helper_mock.cpp140 string assetKey = ""; in FindCloudDiskFile() local
144 make_shared<CloudFile::CloudAssetReadSession>(recordType, recordId, assetKey, assetPath); in FindCloudDiskFile()
/ohos5.0/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/src/adaptor/
H A Djs_distributedobject.cpp356 std::string assetKey; in JSBindAssetStore() member
363 ctxt->status = JSUtil::GetValue(env, argv[0], ctxt->assetKey); in JSBindAssetStore()
380 … uint32_t status = ctxt->wrapper->GetObject()->BindAssetStore(ctxt->assetKey, ctxt->bindInfo); in JSBindAssetStore()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/
H A Djs-apis-data-distributedobject.md634 bindAssetStore(assetKey: string, bindInfo: BindInfo, callback: AsyncCallback&lt;void&gt;): void
646 …| assetKey | string | 是 | 待绑定的融合资产在分布式对象中的键值。 …
716 bindAssetStore(assetKey: string, bindInfo: BindInfo): Promise&lt;void&gt;
728 …| assetKey | string | 是 | 待绑定的融合资产在分布式对象中的键值。 …
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/
H A Dobject_manager.cpp597 std::set<std::string> assetKey; in GetAssetsFromDBRecords() local
600 if (!IsAssetKey(key) || assetKey.find(assetPrefix) != assetKey.end() || in GetAssetsFromDBRecords()
628 assetKey.insert(assetPrefix); in GetAssetsFromDBRecords()
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/
H A Djs-apis-data-distributedobject.md635 bindAssetStore(assetKey: string, bindInfo: BindInfo, callback: AsyncCallback&lt;void&gt;): void
647 …| assetKey | string | Yes | Key of the joint asset in the distributed data obj…
717 bindAssetStore(assetKey: string, bindInfo: BindInfo): Promise&lt;void&gt;
729 …| assetKey | string | Yes | Key of the joint asset in the distributed data objec…
/ohos5.0/docs/zh-cn/application-dev/database/
H A Ddata-sync-of-distributed-data-object.md146 | bindAssetStore(assetKey: string, bindInfo: BindInfo, callback: AsyncCallback&lt;void&gt;): void |…
/ohos5.0/docs/en/application-dev/database/
H A Ddata-sync-of-distributed-data-object.md146 | bindAssetStore(assetKey: string, bindInfo: BindInfo, callback: AsyncCallback&lt;void&gt;): void |…