Searched refs:get_bytes_attr (Results 1 – 13 of 13) sorted by relevance
/ohos5.0/base/security/asset/test/unittest/inner_kits_rust/src/ |
H A D | add.rs | 27 assert_eq!(alias, *res[0].get_bytes_attr(&Tag::Alias).unwrap()); in add_all_tags() 28 assert_eq!(NORMAL_LABEL1, *res[0].get_bytes_attr(&Tag::DataLabelNormal1).unwrap()); in add_all_tags() 29 assert_eq!(NORMAL_LABEL2, *res[0].get_bytes_attr(&Tag::DataLabelNormal2).unwrap()); in add_all_tags() 30 assert_eq!(NORMAL_LABEL3, *res[0].get_bytes_attr(&Tag::DataLabelNormal3).unwrap()); in add_all_tags() 31 assert_eq!(NORMAL_LABEL4, *res[0].get_bytes_attr(&Tag::DataLabelNormal4).unwrap()); in add_all_tags() 36 assert_eq!(CRITICAL_LABEL1, *res[0].get_bytes_attr(&Tag::DataLabelCritical1).unwrap()); in add_all_tags() 61 assert_eq!(func_name, *res[0].get_bytes_attr(&Tag::Alias).unwrap()); in add_required_tags() 62 assert_eq!(func_name, *res[0].get_bytes_attr(&Tag::Secret).unwrap()); in add_required_tags() 82 let bytes = res[0].get_bytes_attr(&Tag::Secret).unwrap(); in add_english_secret() 99 let bytes = res[0].get_bytes_attr(&Tag::Secret).unwrap(); in add_chinese_secret() [all …]
|
H A D | update.rs | 54 assert_eq!(secret_new, res[0].get_bytes_attr(&Tag::Secret).unwrap()); in update_different_secret() 74 let label_normal_query = query_res.get_bytes_attr(&Tag::DataLabelNormal1).unwrap(); in update_attr_normal()
|
H A D | query.rs | 128 …assert!(asset.get_bytes_attr(&Tag::Alias).unwrap().eq(format!("{:?}{}", function_name, i).as_bytes… in query_with_limit_with_without_offset() 137 .get_bytes_attr(&Tag::Alias) in query_with_limit_with_without_offset() 205 let get_alias = asset.get_bytes_attr(&Tag::Alias).unwrap(); in query_with_order() 345 assert!(assets[0].get_bytes_attr(&Tag::DataLabelNormal1).unwrap().eq(NORMAL_LABEL1)); in query_with_return_order_by() 350 assert!(!assets[0].get_bytes_attr(&Tag::DataLabelNormal1).unwrap().eq(NORMAL_LABEL1)); in query_with_return_order_by()
|
/ohos5.0/base/security/asset/services/core_service/src/operations/ |
H A D | operation_query.rs | 44 let secret = db_data.get_bytes_attr(&column::SECRET)?; in upgrade_version() 63 let secret = db_data.get_bytes_attr(&column::SECRET)?; in decrypt_secret() 72 let challenge = query.get_bytes_attr(&Tag::AuthChallenge)?; in exec_crypto() 73 let auth_token = query.get_bytes_attr(&Tag::AuthToken)?; in exec_crypto() 75 let secret = db_data.get_bytes_attr(&column::SECRET)?; in exec_crypto()
|
H A D | operation_post_query.rs | 38 let challenge = handle.get_bytes_attr(&Tag::AuthChallenge)?; in post_query()
|
H A D | operation_add.rs | 39 let secret = db_data.get_bytes_attr(&column::SECRET)?; in encrypt_secret() 72 let alias = attrs.get_bytes_attr(&Tag::Alias)?; in get_query_condition()
|
H A D | operation_update.rs | 31 let secret = db_data.get_bytes_attr(&column::SECRET)?; in encrypt()
|
/ohos5.0/base/security/asset/services/db_operator/src/ |
H A D | database_file_upgrade.rs | 101 let owner_info = info_map.get_bytes_attr(&column::OWNER)?; in get_new_db() 127 let owner_info = info_map.get_bytes_attr(&column::OWNER)?; in construct_old_query_condition()
|
H A D | database.rs | 376 let owner_info = query_result.get_bytes_attr(&column::OWNER)?; in upgrade_key_alias() 482 query.insert_attr(column::ALIAS, datas.get_bytes_attr(&column::ALIAS)?.clone()); in insert_datas() 483 query.insert_attr(column::OWNER, datas.get_bytes_attr(&column::OWNER)?.clone()); in insert_datas()
|
/ohos5.0/base/security/asset/frameworks/definition/src/ |
H A D | extension.rs | 124 fn get_bytes_attr(&self, key: &K) -> Result<&Vec<u8>> { in get_bytes_attr() function
|
H A D | lib.rs | 411 fn get_bytes_attr(&self, key: &K) -> Result<&Vec<u8>>; in get_bytes_attr() method
|
/ohos5.0/base/security/asset/services/db_operator/src/test/ |
H A D | test_database.rs | 199 let query_update_time = res[0].get_bytes_attr(&column::UPDATE_TIME).unwrap(); in update_data() 242 assert_eq!(&(b"AAA".to_vec()), res[0].get_bytes_attr(&column::ALIAS).unwrap()); in query_ordered_data()
|
/ohos5.0/base/security/asset/services/plugin/src/ |
H A D | asset_plugin.rs | 115 let owner = attributes.get_bytes_attr(&column::OWNER).map_err(|e| e.code as u32)?; in get_db_name()
|