Home
last modified time | relevance | path

Searched refs:Asset (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dvalue_proxy_test.cpp162 using NormalAsset = OHOS::DistributedData::Asset;
222 using NormalAsset = OHOS::DistributedData::Asset;
257 DistributedDB::Asset asset;
264 result = ValueProxy::Asset::ConvertToDataStatus(asset);
268 result = ValueProxy::Asset::ConvertToDataStatus(asset);
303 result = ValueProxy::Asset::ConvertToDBStatus(status);
307 result = ValueProxy::Asset::ConvertToDBStatus(status);
311 result = ValueProxy::Asset::ConvertToDBStatus(status);
315 result = ValueProxy::Asset::ConvertToDBStatus(status);
319 result = ValueProxy::Asset::ConvertToDBStatus(status);
[all …]
H A Dobject_asset_machine_test.cpp38 Asset asset_;
50 Asset asset{ in SetUp()
96 Asset asset{
103 std::pair<std::string, Asset> changedAsset{ "device_2", asset };
120 Asset asset{
127 std::pair<std::string, Asset> changedAsset{ "device_2", asset };
142 Asset asset{
149 std::pair<std::string, Asset> changedAsset{ "device_2", asset };
166 Asset asset{
192 Asset asset{
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/
H A Dobject_asset_machine.cpp41 const std::pair<std::string, Asset>& newAsset);
44 const std::pair<std::string, Asset>& newAsset);
47 const std::pair<std::string, Asset>& newAsset);
50 const std::pair<std::string, Asset>& newAsset);
53 const std::pair<std::string, Asset>& newAsset);
56 const std::pair<std::string, Asset>& newAsset);
63 static void MergeAsset(Asset& oldAsset, const Asset& newAsset);
134 const std::pair<std::string, Asset>& newAsset) in DFAPostEvent()
162 const std::pair<std::string, Asset>& newAsset) in DoTransfer()
279 static void MergeAsset(Asset& oldAsset, const Asset& newAsset) in MergeAsset()
[all …]
H A Dobject_snapshot.h30 int32_t Upload(Asset& asset) override;
31 int32_t Download(Asset& asset) override;
32 TransferStatus GetAssetStatus(Asset& asset) override;
33 int32_t Uploaded(Asset& asset) override;
34 int32_t Downloaded(Asset& asset) override;
35 int32_t Transferred(Asset& asset) override;
36 int32_t OnDataChanged(Asset& asset, const std::string& deviceId) override;
37 int32_t BindAsset(const Asset& asset, const DistributedData::AssetBindInfo& bindInfo,
39 bool IsBoundAsset(const Asset& asset) override;
H A Dobject_snapshot.cpp26 int32_t ObjectSnapshot::Upload(Asset& asset) in Upload()
34 bool ObjectSnapshot::IsBoundAsset(const Asset& asset) in IsBoundAsset()
43 int32_t ObjectSnapshot::Download(Asset& asset) in Download()
51 TransferStatus ObjectSnapshot::GetAssetStatus(Asset& asset) in GetAssetStatus()
59 int32_t ObjectSnapshot::Uploaded(Asset& asset) in Uploaded()
67 int32_t ObjectSnapshot::Downloaded(Asset& asset) in Downloaded()
75 int32_t ObjectSnapshot::OnDataChanged(Asset& asset, const std::string& deviceId) in OnDataChanged()
80 std::pair<std::string, Asset> newAsset{ deviceId, asset }; in OnDataChanged()
84 int32_t ObjectSnapshot::BindAsset(const Asset& asset, const DistributedData::AssetBindInfo& bindInf… in BindAsset()
95 int32_t ObjectSnapshot::Transferred(Asset& asset) in Transferred()
H A Dobject_asset_machine.h29 DistributedData::Asset asset;
34 …ChangedAssetInfo(const Asset& bindAsset, const AssetBindInfo& assetBindInfo, const StoreInfo& stor… in ChangedAssetInfo()
43 …(int32_t eventId, ChangedAssetInfo& changedAsset, Asset& asset, const std::pair<std::string, Asset
55 static int32_t DFAPostEvent(AssetEvent eventId, ChangedAssetInfo& changedAsset, Asset& asset,
56 const std::pair<std::string, Asset>& newAsset = std::pair<std::string, Asset>());
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/common/
H A Dvalue_proxy.cpp180 ValueProxy::Asset::Asset(DistributedData::Asset asset) in Asset() function in OHOS::DistributedData::ValueProxy::Asset
185 ValueProxy::Asset::Asset(NativeRdb::AssetValue asset) in Asset() function in OHOS::DistributedData::ValueProxy::Asset
200 ValueProxy::Asset::Asset(CommonType::AssetValue asset) in Asset() function in OHOS::DistributedData::ValueProxy::Asset
215 ValueProxy::Asset::Asset(DistributedDB::Asset asset) in Asset() function in OHOS::DistributedData::ValueProxy::Asset
230 ValueProxy::Asset &ValueProxy::Asset::operator=(const Asset &proxy) in operator =()
239 ValueProxy::Asset &ValueProxy::Asset::operator=(Asset &&proxy) noexcept in operator =()
248 ValueProxy::Asset::operator NativeRdb::AssetValue()
278 ValueProxy::Asset::operator DistributedData::Asset()
283 ValueProxy::Asset::operator DistributedDB::Asset()
297 uint32_t ValueProxy::Asset::ConvertToDataStatus(const DistributedDB::Asset &asset) in ConvertToDataStatus()
[all …]
H A Dvalue_proxy.h47 class Asset {
49 Asset() = default;
50 Asset(Asset &&proxy) noexcept in Asset() function
54 Asset(const Asset &proxy) in Asset() function
58 Asset(DistributedData::Asset asset);
61 Asset(DistributedDB::Asset asset);
62 Asset &operator=(const Asset &proxy);
63 Asset &operator=(Asset &&proxy) noexcept;
72 DistributedData::Asset asset_;
82 DistributedData::Asset asset_;
[all …]
/ohos5.0/docs/en/application-dev/security/AssetStoreKit/
H A DReadme-EN.md1 # Asset Store Kit
3 - [Introduction to Asset Store Kit](asset-store-kit-overview.md)
5 - [Protecting Asset Data](asset-scenario1.md)
6 - [Protecting Asset Data with User Authentication](asset-scenario2.md)
7 - Asset Store Kit Development (ArkTS)
8 - [Adding an Asset (ArkTS)](asset-js-add.md)
10 - [Updating an Asset (ArkTS)](asset-js-update.md)
14 …- [Performing Asset Operations in Specified User Space (for System Applications Only) (ArkTS)](ass…
16 - Asset Store Kit Development (C/C++)
17 - [Adding an Asset (C/C++)](asset-native-add.md)
[all …]
H A Dasset-scenario1.md1 # Protecting Asset Data
9 Asset store service (ASSET) is used in the logins of the users who select **Remember password** on …
23 …[Querying Attributes of an Asset (ArkTS)](asset-js-query.md#querying-attributes-of-an-asset)/[Quer…
24 …ot exist, add an asset. For details, see [Adding an Asset (ArkTS)](asset-js-add.md)/[Adding an Ass…
28 …* Update the asset. For details, see [Updating an Asset (ArkTS)](asset-js-update.md)/[Updating an
29 …ing the Plaintext of an Asset (ArkTS)](asset-js-query.md#querying-the-plaintext-of-an-asset)/[Quer…
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/snapshot/
H A Dsnapshot.cpp19 int32_t Snapshot::Upload(OHOS::DistributedData::Asset& asset) in Upload()
24 int32_t Snapshot::Download(OHOS::DistributedData::Asset& asset) in Download()
28 int32_t Snapshot::Uploaded(Asset& asset) in Uploaded()
32 int32_t Snapshot::Downloaded(Asset& asset) in Downloaded()
37 int32_t Snapshot::Transferred(Asset& asset) in Transferred()
42 TransferStatus Snapshot::GetAssetStatus(Asset& asset) in GetAssetStatus()
47 int32_t Snapshot::BindAsset(const Asset& asset, const AssetBindInfo& bindInfo, const StoreInfo& sto… in BindAsset()
52 int32_t Snapshot::OnDataChanged(Asset& asset, const std::string &deviceId) in OnDataChanged()
57 bool Snapshot::IsBoundAsset(const Asset& asset) in IsBoundAsset()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/snapshot/
H A Dsnapshot.h29 virtual int32_t Transferred(Asset& asset) = 0;
31 virtual int32_t Upload(Asset& asset) = 0;
33 virtual int32_t Download(Asset& asset) = 0;
35 virtual int32_t Uploaded(Asset& asset) = 0;
37 virtual int32_t Downloaded(Asset& asset) = 0;
39 virtual TransferStatus GetAssetStatus(Asset& asset) = 0;
41 …virtual int32_t BindAsset(const Asset& asset, const AssetBindInfo& bindInfo, const StoreInfo& stor…
43 virtual int32_t OnDataChanged(Asset& asset, const std::string &deviceId) = 0;
45 virtual bool IsBoundAsset(const Asset& asset) = 0;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/
H A Dcloud_sync_tag_assets.cpp87 Asset &asset, Assets &res, int &errCode) in TagAssetWithNormalStatus()
99 for (Asset &asset : assets) { in TagAssetsWithNormalStatus()
127 void TagAssetWithSameHash(const bool setNormalStatus, Asset &beCoveredAsset, Asset &coveredAsset, A… in TagAssetWithSameHash()
175 for (Asset &beCoveredAsset : beCovered) { in TagAssets()
182 Asset &coveredAsset = covered[it->second]; in TagAssets()
212 static void TagCoveredAssetInner(Asset &covered, const Asset &beCovered, const bool setNormalStatus… in TagCoveredAssetInner()
256 Asset &covered = std::get<Asset>(GetAssetsCaseInsensitive(assetFieldName, coveredData)); in TagAsset()
257 Asset beCovered; in TagAsset()
326 Asset &asset = std::get<Asset>(GetAssetsCaseInsensitive(filedName, coveredData)); in TagAssetForUpload()
341 case TYPE_INDEX<Asset>: { in TagAssetsInSingleCol()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/
H A Djs-apis-data-sendableRelationalStore.md143 function toSendableAsset(asset: NonSendableAsset): Asset
159 | [Asset](#asset) | 可跨线程传递的Asset数据。 |
184 function fromSendableAsset(asset: Asset): NonSendableAsset
194 | asset | [Asset](#asset) | 是 | 可跨线程传递的Asset数据。 |
200 | [NonSendableAsset](#nonsendablebucket) | 不可跨线程传递的Asset数据。 |
225 ## Asset section
244 type Assets = collections.Array\<Asset>
246 表示[Asset](#asset)类型数据的集合。用于支持Asset数据集合跨线程传递。
252 …/apis-arkts/js-apis-arkts-collections.md#collectionsarray)\<[Asset](#asset)> | 用于并发场景的Asset附件数据集合。…
269 | [Asset](#asset) | 表示值类型为附件Asset。<br/>当字段类型是Asset时,在创建表的sql语句中,类型应当为:ASSET。 |
[all …]
H A Djs-apis-data-commonType.md30 ## Asset section
48 type Assets = Array\<Asset>
50 表示[Asset](#asset)类型的数组。
56 | Array&lt;[Asset](#asset)&gt; | 表示Asset类型的数组。 |
60 type ValueType = null | number | string | boolean | Uint8Array | Asset | Assets
73 | Asset | 表示值类型为附件[Asset](#asset)。 |
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/cloud/
H A Dasset_operation_utils.cpp25 using Reaction = std::function<AssetOperationUtils::AssetOpType (const Asset &, const Assets &)>;
47 if (TYPE_INDEX<Asset> == colData.index()) { in CalAssetOperation()
48 auto asset = std::get<Asset>(colData); in CalAssetOperation()
97 if (item.second.index() == TYPE_INDEX<Asset>) { in FilterDeleteAsset()
98 auto &asset = std::get<Asset>(item.second); in FilterDeleteAsset()
143 AssetOperationUtils::AssetOpType AssetOperationUtils::CheckAfterDownload(const Asset &cacheAsset, in CheckAfterDownload()
196 if (TYPE_INDEX<Asset> == value.index()) { in GetAssets()
197 res.push_back(std::get<Asset>(value)); in GetAssets()
221 void AssetOperationUtils::MergeAssetFlag(const Assets &from, Asset &target) in MergeAssetFlag()
232 if (TYPE_INDEX<Asset> == target.index()) { in MergeAssetsFlag()
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.31/
H A Dchangelogs-arkdata.md3 ## cl.ArkData.1 Asset属性类型变更
11 Asset的属性在OpenHarmony 5.0 Beta1阶段增加了undefined类型,破坏了Asset的通用性。
15 该变更为不兼容变更。Asset的属性去掉了undefined对类型的支持。
29 Asset/数据通用类型(commonType)
33 对于已按照OpenHarmony 5.0 Beta1版本的方法在Asset属性使用undefined类型的应用工程,必须改为空字符串来解决数据覆盖问题。
35 对于其他使用Asset属性的应用工程,建议设置空字符串来解决数据覆盖问题。
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/cloud/
H A Dasset_operation_utils.h37 …tOperationUtils::AssetOpType CalAssetOperation(const std::string &colName, const Asset &cacheAsset,
44 static AssetOperationUtils::AssetOpType DefaultOperation(const Asset &, const Assets &);
45 …static AssetOperationUtils::AssetOpType CheckBeforeDownload(const Asset &cacheAsset, const Assets …
46 …static AssetOperationUtils::AssetOpType CheckAfterDownload(const Asset &cacheAsset, const Assets &…
47 static AssetOperationUtils::AssetOpType CheckWithDownload(bool before, const Asset &cacheAsset,
49 …static AssetOperationUtils::AssetOpType CheckAfterUpload(const Asset &cacheAsset, const Assets &db…
50 …static AssetOperationUtils::AssetOpType HandleIfExistAndSameStatus(const Asset &cacheAsset, const …
52 static void MergeAssetFlag(const Assets &from, Asset &target);
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Draw_data_parser.h25 using Asset = ValueObject::Asset;
31 static size_t ParserRawData(const uint8_t *data, size_t length, Asset &asset);
33 …static size_t ParserRawData(const uint8_t *data, size_t length, std::map<std::string, Asset> &asse…
37 static std::vector<uint8_t> PackageRawData(const Asset &asset);
39 static std::vector<uint8_t> PackageRawData(const std::map<std::string, Asset> &assets);
45 Asset &asset_;
46 explicit InnerAsset(Asset &asset) : asset_(asset) {} in InnerAsset()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/cloud/
H A Dcloud_storage_utils.h64 static int FillAssetBeforeDownload(Asset &asset);
65 …static int FillAssetAfterDownloadFail(Asset &asset, Asset &dbAsset, AssetOperationUtils::AssetOpTy…
70 std::function<int(Asset &, Asset &, AssetOperationUtils::AssetOpType)> fillAsset);
71 …static int FillAssetAfterDownload(Asset &asset, Asset &dbAsset, AssetOperationUtils::AssetOpType a…
74 …static int FillAssetBeforeUpload(Asset &asset, Asset &dbAsset, AssetOperationUtils::AssetOpType as…
77 …static int FillAssetForUpload(Asset &asset, Asset &dbAsset, AssetOperationUtils::AssetOpType asset…
80 …static int FillAssetForUploadFailed(Asset &asset, Asset &dbAsset, AssetOperationUtils::AssetOpType…
83 …static void PrepareToFillAssetFromVBucket(VBucket &vBucket, std::function<int(Asset &)> fillAsset);
85 …VBucket &dbAssets, std::function<int(Asset &, Asset &, AssetOperationUtils::AssetOpType)> fillAsse…
114 std::vector<Asset> &removeAssets);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-asset-store-kit/
H A Djs-apis-asset.md25 **系统能力:** SystemCapability.Security.Asset
100 **系统能力:** SystemCapability.Security.Asset
163 **系统能力:** SystemCapability.Security.Asset
229 **系统能力:** SystemCapability.Security.Asset
285 **系统能力:** SystemCapability.Security.Asset
356 **系统能力:** SystemCapability.Security.Asset
417 **系统能力:** SystemCapability.Security.Asset
486 **系统能力:** SystemCapability.Security.Asset
551 **系统能力:** SystemCapability.Security.Asset
624 **系统能力:** SystemCapability.Security.Asset
[all …]
H A Djs-apis-asset-sys.md26 **系统能力:** SystemCapability.Security.Asset
84 console.info(`Asset added to user space successfully.`);
102 **系统能力:** SystemCapability.Security.Asset
154 console.info(`Asset removed from user space successfully.`);
172 **系统能力:** SystemCapability.Security.Asset
229 console.info(`Asset updated in user space successfully.`);
247 **系统能力:** SystemCapability.Security.Asset
302 console.info(`Succeeded in pre-querying Asset from user space.`);
320 **系统能力:** SystemCapability.Security.Asset
379 console.info(`Succeeded in querying Asset from user space.`);
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/
H A Djs-apis-data-commonType.md30 ## Asset section
38 | name | string | Yes | Asset name. |
39 | uri | string | Yes | Asset URI, which is an absolute path in the sys…
44 | status | [AssetStatus](#assetstatus) | No | Asset status. The default value is **ASSET_NORMA…
48 type Assets = Array\<Asset>
56 | Array&lt;[Asset](#asset)&gt; | Array of assets.|
60 type ValueType = null | number | string | boolean | Uint8Array | Asset | Assets
73 | Asset | The value is an [Asset](#asset). |
74 | Assets | The value is an [Asset array](#assets).|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/cj/src/
H A Drelational_store_utils.cpp47 NativeRdb::ValueObject::Asset asset = { in ValueTypeToValueObjectAsset()
62 … std::vector<NativeRdb::ValueObject::Asset> assets = std::vector<NativeRdb::ValueObject::Asset>(); in ValueTypeToValueObjectAssets()
64 Asset asset = value.assets.head[j]; in ValueTypeToValueObjectAssets()
67 NativeRdb::ValueObject::Asset nativeAsset = { in ValueTypeToValueObjectAssets()
127 NativeRdb::ValueObject::Asset val; in ValueObjectToValueTypeAsset()
129 Asset asset = Asset { in ValueObjectToValueTypeAsset()
145 …Assets assets = Assets {.head = static_cast<Asset*>(malloc(val.size() * sizeof(Asset))), .size = v… in ValueObjectToValueTypeAssets()
150 assets.head[i] = Asset { in ValueObjectToValueTypeAssets()
/ohos5.0/docs/en/application-dev/reference/apis-asset-store-kit/
H A Djs-apis-asset-sys.md1 # @ohos.security.asset (Asset Store Service) (System API)
26 **System capability**: SystemCapability.Security.Asset
84 console.info(`Asset added to user space successfully.`);
102 **System capability**: SystemCapability.Security.Asset
154 console.info(`Asset removed from user space successfully.`);
172 **System capability**: SystemCapability.Security.Asset
229 console.info(`Asset updated in user space successfully.`);
247 **System capability**: SystemCapability.Security.Asset
320 **System capability**: SystemCapability.Security.Asset
379 console.info(`Succeeded in querying Asset from user space.`);
[all …]

12345678910>>...12