/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | raw_data_parser_test.cpp | 125 ValueObject::Assets assets(1); variable 126 assets[0].id = "100"; 127 assets[0].name = "IMG_1690.png"; 128 assets[0].uri = "file://data/args/header/IMG_1690.png"; 131 assets[0].size = "4194304"; 133 assets[0].path = "photos/header/IMG_1690.png"; 134 auto rawData = RawDataParser::PackageRawData(assets); 140 ASSERT_TRUE(parsedAssets[0].id == assets[0].id); 141 ASSERT_TRUE(parsedAssets[0].name == assets[0].name); 142 ASSERT_TRUE(parsedAssets[0].uri == assets[0].uri); [all …]
|
/ohos5.0/docs/zh-cn/device-dev/subsystems/ |
H A D | subsys-build-gn-hap-compilation-guide.md | 28 | raw_assets | 原始assets,这些assets会直接拷贝到HAP的assets目录下。 | 29 | resources | 资源文件,编译后放置在assets/entry/resources目录下 | 30 | js_assets | js资源,编译后放置在assets/js/default目录下。| 31 | ets_assets | ets资源,编译后放置在assets/js/default目录下 | 58 js或ets代码,编译后放置在assets/js/default目录下,stage模型根据代码分别放置到js或ets目录。 68 原始assets,这些assets会直接拷贝到HAP的assets目录下。 72 | sources | 原始assets的路径。| 75 资源文件,FA模型编译后放置在assets/entry/resources目录下,Stage模型编译后放置在resources目录下。 134 1439 2009-01-01 00:00 assets/raw_assets -----> raw_assets 135 354 2009-01-01 00:00 assets/entry/resources.index ------> resources [all …]
|
/ohos5.0/build/docs/ |
H A D | how-to-build-a-hap.md | 28 | raw_assets | 原始assets,这些assets会直接拷贝到HAP的assets目录下。 | 29 | resources | 资源文件,编译后放置在assets/entry/resources目录下 | 30 | js_assets | js资源,ace编译后放置在assets/js/default目录下。| 31 | ets_assets | ets资源,ace编译后放置在assets/js/default目录下 | 58 js或ets代码,ace编译后放置在assets/js/default目录下,stage模型根据代码分别放置到js或ets目录。 68 原始assets,这些assets会直接拷贝到HAP的assets目录下。 72 | sources | 原始assets的路径。| 75 资源文件,FA模型编译后放置在assets/entry/resources目录下,Stage模型编译后放置在resources目录下。 134 1439 2009-01-01 00:00 assets/raw_assets -----> raw_assets 135 354 2009-01-01 00:00 assets/entry/resources.index ------> resources [all …]
|
/ohos5.0/base/security/asset/test/unittest/inner_kits_rust/src/ |
H A D | query.rs | 121 assert_eq!(asset_num, assets.len() as u32); in query_with_limit_with_without_offset() 126 assert_eq!(limit, assets.len() as u32); in query_with_limit_with_without_offset() 134 assert_eq!(limit, assets.len() as u32); in query_with_limit_with_without_offset() 202 assert_eq!(limit, assets.len() as u32); in query_with_order() 302 assert_eq!(1, assets.len() as u32); in query_with_bytes_tag() 316 assert_eq!(1, assets.len() as u32); in query_with_accessibility() 366 assert_eq!(1, assets.len() as u32); in query_with_return_limit() 389 assert_eq!(1, assets.len() as u32); in query_with_return_offset() 411 assert_eq!(1, assets.len() as u32); in query_with_return_type() 429 assert_eq!(1, assets.len() as u32); in query_with_auth_type() [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | rdb_asset_loader_test.cpp | 55 const DistributedData::Value &prefix, VBucket &assets) override in Download() argument 61 const DistributedData::Value &prefix, VBucket &assets) override in RemoveLocalAssets() argument 90 std::map<std::string, DistributedDB::Assets> assets; variable 91 assets["asset1"].push_back(g_rdbAsset); 92 auto result = rdbAssetLoader.Download(tableName, groupId, prefix, assets); 108 std::vector<DistributedDB::Asset> assets; variable 109 assets.push_back(g_rdbAsset); 110 auto result = rdbAssetLoader.RemoveLocalAssets(assets); 130 std::map<std::string, DistributedDB::Assets> assets; variable 131 assets["asset1"].push_back(g_rdbAsset); [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/ |
H A D | virtual_asset_loader.cpp | 20 std::map<std::string, Assets> &assets) in Download() argument 30 downloadCallBack_(assets); in Download() 32 for (auto &item: assets) { in Download() 41 DBStatus VirtualAssetLoader::RemoveLocalAssets(const std::vector<Asset> &assets) in RemoveLocalAssets() argument 44 return removeAssetsCallBack_(assets); in RemoveLocalAssets() 50 std::map<std::string, Assets> &assets) in RemoveLocalAssets() argument 54 errCode = removeLocalAssetsCallBack_(assets); in RemoveLocalAssets() 60 for (auto &item: assets) { in RemoveLocalAssets()
|
H A D | virtual_cloud_data_translate.cpp | 36 uint32_t CalculateLens(const Assets &assets) in CalculateLens() argument 39 for (const auto &asset : assets) { in CalculateLens() 82 std::vector<uint8_t> VirtualCloudDataTranslate::AssetsToBlob(const Assets &assets) in AssetsToBlob() argument 87 srcLen += CalculateLens(assets); in AssetsToBlob() 90 parcel.WriteUInt32(assets.size()); in AssetsToBlob() 91 for (const auto &asset : assets) { in AssetsToBlob() 109 Assets assets; in BlobToAssets() local 110 assets.resize(count); in BlobToAssets() 112 ReadAsset(parcel, assets[i]); in BlobToAssets() 114 return assets; in BlobToAssets()
|
H A D | virtual_asset_loader.h | 22 using DownloadCallBack = std::function<void (std::map<std::string, Assets> &assets)>; 23 using RemoveAssetsCallBack = std::function<DBStatus (const std::vector<Asset> &assets)>; 24 using RemoveLocalAssetsCallBack = std::function<DBStatus (std::map<std::string, Assets> &assets)>; 31 std::map<std::string, Assets> &assets) override; 33 DBStatus RemoveLocalAssets(const std::vector<Asset> &assets) override; 36 std::map<std::string, Assets> &assets) override;
|
H A D | distributeddb_cloud_db_proxy_test.cpp | 523 Assets assets; variable 528 assets.push_back(asset1); 534 assets.push_back(asset2); 540 assets.push_back(asset3); 546 assets.push_back(asset4); 552 assets.push_back(asset5); 558 assets.push_back(asset6); 594 Assets assets; variable 853 assets = {{}}; 892 Assets assets = {{}}; variable [all …]
|
/ohos5.0/docs/zh-cn/application-dev/database/ |
H A D | native-relational-store-guidelines.md | 232 OH_Data_Asset_SetName(assets[0], "name0"); 233 OH_Data_Asset_SetUri(assets[0], "uri0"); 234 OH_Data_Asset_SetPath(assets[0], "path0"); 235 OH_Data_Asset_SetCreateTime(assets[0], 1); 236 OH_Data_Asset_SetModifyTime(assets[0], 1); 237 OH_Data_Asset_SetSize(assets[0], 1); 240 OH_Data_Asset_SetName(assets[1], "name1"); 241 OH_Data_Asset_SetUri(assets[1], "uri1"); 245 OH_Data_Asset_SetSize(assets[1], 1); 251 OH_Data_Asset_DestroyMultiple(assets, 2); [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/ |
H A D | rdb_asset_loader.cpp | 33 std::map<std::string, Assets> &assets) in Download() argument 35 DistributedData::VBucket downLoadAssets = ValueProxy::Convert(assets); in Download() 42 assets = ValueProxy::Convert(std::move(downLoadAssets)); in Download() 47 DBStatus RdbAssetLoader::RemoveLocalAssets(const std::vector<Asset> &assets) in RemoveLocalAssets() argument 49 …tedData::VBucket deleteAssets = ValueProxy::Convert(std::map<std::string, Assets>{{ "", assets }}); in RemoveLocalAssets() 54 …PostEvent(std::set<std::string>& skipAssets, std::map<std::string, DistributedData::Value>& assets, in PostEvent() argument 57 for (auto& asset : assets) { in PostEvent() 66 void RdbAssetLoader::PostEvent(DistributedData::AssetEvent eventId, DistributedData::Assets& assets, in PostEvent() argument 69 for (auto& downLoadAsset : assets) { in PostEvent()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/common/ |
H A D | value_proxy.cpp | 359 assets_.reserve(assets.size()); in Assets() 360 for (auto &asset : assets) { in Assets() 369 for (auto &asset : assets) { in Assets() 378 for (auto &asset : assets) { in Assets() 387 for (auto &asset : assets) { in Assets() 417 return assets; 422 CommonType::Assets assets; variable 427 return assets; 437 return assets; 442 DistributedDB::Assets assets; variable [all …]
|
/ohos5.0/docs/en/application-dev/security/AssetStoreKit/ |
H A D | asset-store-kit-overview.md | 9 …gorithm is used to encrypt and decrypt assets. The following access control mechanisms are used to… 11 * Owner-based access control: All assets are protected by this mechanism by default. 17 * **DEVICE_POWERED_ON**: allows access to assets after the device is powered on. 18 …* **DEVICE_FIRST_UNLOCKED**: allows access to assets after the device is unlocked for the first ti… 19 * **DEVICE_UNLOCKED**: allows access to assets only when the device is unlocked. 21 * Access control based on the setting of the lock screen password: This mechanism allows assets to … 22 …* If this mechanism is enabled, assets can be accessed only after the user sets a screen lock pass… 24 * Access control based on user authentication: This mechanism allows assets to be accessed only aft… 25 …* If this mechanism is enabled, assets can be accessed only after a successful user identity authe… 27 …* You can set an authentication validity period, which allows access to multiple assets within the… [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_relational_cloud_syncable_storage_test.cpp | 115 Assets assets; in CreateAndInitUserTable() local 237 Assets assets; in ConstructMultiDownloadData() local 1104 Assets assets; variable 1159 Assets assets; variable 1497 VBucket assets; variable 1520 assets = {}; 1532 assets = {}; 1541 assets = {}; 1557 VBucket assets; variable 1573 assets = {}; [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-asset-store-kit/ |
H A D | _asset___result_set.md | 6 Defines the query result of multiple assets. 20 | uint32_t [count](#count) | Number of assets in the query result. | 21 | [Asset_Result](_asset___result.md) \* [results](#results) | Pointer to the array of assets. | 33 Indicates the number of assets in the query result. 42 Indicates the pointer to the array of assets.
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/cj/src/ |
H A D | relational_store_impl_resultsetproxy.cpp | 265 std::vector<NativeRdb::ValueObject::Asset> assets; in GetAssets() local 266 *rtnCode = resultSetValue->GetAssets(columnIndex, assets); in GetAssets() 274 for (size_t i = 0; i < assets.size(); i++) { in GetAssets() 276 .name= MallocCString(assets[i].name), in GetAssets() 277 .uri= MallocCString(assets[i].uri), in GetAssets() 278 .path= MallocCString(assets[i].path), in GetAssets() 279 .createTime= MallocCString(assets[i].createTime), in GetAssets() 280 .modifyTime= MallocCString(assets[i].modifyTime), in GetAssets() 281 .size= MallocCString(assets[i].size), in GetAssets() 282 .status= (int32_t)assets[i].status in GetAssets() [all …]
|
H A D | relational_store_utils.cpp | 62 … std::vector<NativeRdb::ValueObject::Asset> assets = std::vector<NativeRdb::ValueObject::Asset>(); in ValueTypeToValueObjectAssets() local 63 for (int64_t j = 0; j < value.assets.size; j++) { in ValueTypeToValueObjectAssets() 64 Asset asset = value.assets.head[j]; in ValueTypeToValueObjectAssets() 77 assets.push_back(nativeAsset); in ValueTypeToValueObjectAssets() 79 return NativeRdb::ValueObject(assets); in ValueTypeToValueObjectAssets() 145 …Assets assets = Assets {.head = static_cast<Asset*>(malloc(val.size() * sizeof(Asset))), .size = v… in ValueObjectToValueTypeAssets() 146 if (assets.head == nullptr) { in ValueObjectToValueTypeAssets() 147 return ValueType {.assets = Assets{nullptr, -1}, .tag = TYPE_ASSETS}; in ValueObjectToValueTypeAssets() 150 assets.head[i] = Asset { in ValueObjectToValueTypeAssets() 160 return ValueType {.assets = assets, .tag = TYPE_ASSETS}; in ValueObjectToValueTypeAssets()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/ |
H A D | distributeddb_cloud_assets_operation_sync_test.cpp | 237 std::vector<Asset> assets; in GetAssets() local 247 assets.push_back(asset); in GetAssets() 249 return assets; in GetAssets() 262 Assets assets; in UpdateCloudTableRecord() local 268 assets.push_back(asset); in UpdateCloudTableRecord() 304 size_t size = assets.size(); in CheckAssetsCount() 430 Assets assets; variable 471 Assets assets; in InsertLocalAssetData() local 480 assets.push_back(asset); in InsertLocalAssetData() 642 Assets assets; in InsertCloudAssetData() local [all …]
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-build-gn-hap-compilation-guide.md | 28 | raw_assets | Raw assets, which are directly copied to the **assets** directory of the HAP.| 30 | js_assets | JS resources, which are stored in the **assets/js/default** directory after built.| 31 | ets_assets | eTS resources, which are stored in the **assets/js/default** directory after built.| 58 … stored in the **assets/js/default** directory after built. In the stage model, this template is s… 68 Provides raw assets, which are directly copied to the **assets** directory of the HAP. 72 | sources | Path of the raw assets.| 135 1439 2009-01-01 00:00 assets/raw_assets -----> raw_assets 136 354 2009-01-01 00:00 assets/entry/resources.index ------> resources 137 1 2009-01-01 00:00 assets/entry/resources/base/media/attributes.key ------> resources 138 1 2009-01-01 00:00 assets/entry/resources/base/media/constants.key ------> resources [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/cloud/ |
H A D | cloud_storage_utils.cpp | 128 Assets assets; in BindBlob() local 175 Assets assets; in BindAsset() local 181 if (!assets.empty()) { in BindAsset() 431 Assets assets; in GetAssetFromAssets() local 437 for (Asset &asset: assets) { in GetAssetFromAssets() 573 Assets assets; in PrepareToFillAssetFromVBucket() local 575 for (auto it = assets.begin(); it != assets.end();) { in PrepareToFillAssetFromVBucket() 866 if (data.assets.empty()) { in ChkFillCloudAssetParam() 877 data.assets.size() != data.hashKey.size() || data.assets.size() != data.extend.size()) { in ChkFillCloudAssetParam() 909 Assets assets; in GetToBeRemoveAssets() local [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/service_impl/ |
H A D | asset_loader.rs | 51 assets: &[CloudAsset], in upload() 57 assets, in upload() 70 assets: &[CloudAsset], in download() 76 assets, in download() 92 assets: &[CloudAsset], in upload_download_inner() 105 for asset in assets.iter() { in upload_download_inner()
|
/ohos5.0/docs/en/application-dev/database/ |
H A D | native-relational-store-guidelines.md | 218 5. Insert data assets into a table. 236 OH_Data_Asset_SetName(assets[0], "name0"); 237 OH_Data_Asset_SetUri(assets[0], "uri0"); 238 OH_Data_Asset_SetPath(assets[0], "path0"); 239 OH_Data_Asset_SetCreateTime(assets[0], 1); 241 OH_Data_Asset_SetSize(assets[0], 1); 245 OH_Data_Asset_SetUri(assets[1], "uri1"); 249 OH_Data_Asset_SetSize(assets[1], 1); 255 OH_Data_Asset_DestroyMultiple(assets, 2); 259 6. Read data assets from the result set. [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | asset_loader_test.cpp | 36 VBucket assets; variable 37 auto ret = loader.Download(tableName, gid, prefix, assets); 52 VBucket assets; variable 53 auto ret = loader.RemoveLocalAssets(tableName, gid, prefix, assets);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/test/RofsBuild/ |
H A D | compile_rofs.sh | 25 cp -r $OPENHARMONY_DIR/foundation/graphic/graphic_3d/lume/Lume_3D/assets/3d/* 3d_source 27 … cp -r $OPENHARMONY_DIR/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/* render_source 29 … cp -r $OPENHARMONY_DIR/foundation/graphic/graphic_3d/lume/LumeEngine/assets/render/* render_source 42 …ize --source $PROJECT_ROOT/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders --i… 44 …timize --source $PROJECT_ROOT/foundation/graphic/graphic_3d/lume/Lume_3D/assets/3d/shaders --inclu…
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/ |
H A D | relational_asset.cpp | 220 auto assets = new Data_Asset *[count]; in OH_Data_Asset_CreateMultiple() local 222 assets[i] = new Data_Asset(); in OH_Data_Asset_CreateMultiple() 224 return assets; in OH_Data_Asset_CreateMultiple() 227 int OH_Data_Asset_DestroyMultiple(Data_Asset **assets, uint32_t count) in OH_Data_Asset_DestroyMultiple() argument 230 delete assets[i]; in OH_Data_Asset_DestroyMultiple() 232 delete[] assets; in OH_Data_Asset_DestroyMultiple() 233 assets = nullptr; in OH_Data_Asset_DestroyMultiple()
|