Home
last modified time | relevance | path

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

/ohos5.0/base/security/asset/services/common/src/
H A Dcalling_info.rs27 owner_type: OwnerType, field
43 pub fn new(user_id: i32, owner_type: OwnerType, owner_info: Vec<u8>) -> Self { in new()
44 Self { user_id, owner_type, owner_info } in new()
67 CallingInfo { user_id: user_id as i32, owner_type: process_info.owner_type, owner_info } in build()
71 pub fn owner_type(&self) -> u32 { in owner_type() method
72 self.owner_type as u32 in owner_type()
77 self.owner_type in owner_type_enum()
117 owner_type: OwnerType::Hap, in test_build_callig_info_specific_and_hap()
137 owner_type: OwnerType::Hap, in test_build_callig_info_hap()
155 owner_type: OwnerType::Native, in test_build_callig_info_native()
[all …]
H A Dprocess_info.rs39 owner_type: u32, field
52 owner_type: 0, in init()
103 pub owner_type: OwnerType, field
131 let process_info_detail = match OwnerType::try_from(process_info_ffi.owner_type)? { in build()
140 owner_type: OwnerType::try_from(process_info_ffi.owner_type)?, in build()
/ohos5.0/base/security/asset/services/db_operator/src/
H A Ddatabase_file_upgrade.rs50 pub fn construct_splited_db_name(owner_type: OwnerType, owner_info: &[u8], is_ce: bool) -> Result<S… in construct_splited_db_name()
51 let mut res: String = match owner_type { in construct_splited_db_name()
100 let owner_type = OwnerType::try_from(info_map.get_num_attr(&column::OWNER_TYPE)?.to_owned())?; in get_new_db() localVariable
102 let new_db_name = construct_splited_db_name(owner_type, owner_info, false)?; in get_new_db()
H A Ddatabase.rs210 …pub fn build(user_id: i32, owner_type: OwnerType, owner_info: &[u8], is_ce: bool) -> Result<Databa… in build()
215 get_normal_db(user_id, &construct_splited_db_name(owner_type, owner_info, is_ce)?, is_ce) in build()
375 let owner_type = query_result.get_enum_attr(&column::OWNER_TYPE)?; in upgrade_key_alias() localVariable
377 let calling_info = CallingInfo::new(user_id, owner_type, owner_info.to_vec()); in upgrade_key_alias()
/ohos5.0/base/security/asset/services/plugin/src/
H A Dasset_plugin.rs116 …let owner_type = attributes.get_enum_attr::<OwnerType>(&column::OWNER_TYPE).map_err(|e| e.code as … in get_db_name() localVariable
118 construct_splited_db_name(owner_type, owner, is_ce).map_err(|e| e.code as u32) in get_db_name()
/ohos5.0/base/security/asset/services/core_service/src/
H A Dstub.rs73 params.insert(PARAM_NAME_IS_HAP, Value::Bool(process_info.owner_type == OwnerType::Hap)); in on_app_request()
/ohos5.0/base/security/asset/services/core_service/src/operations/
H A Doperation_add.rs76 query.insert(column::OWNER_TYPE, Value::Number(calling_info.owner_type())); in get_query_condition()
H A Dcommon.rs133 db_data.insert(column::OWNER_TYPE, Value::Number(calling_info.owner_type())); in add_owner_info()
/ohos5.0/base/security/asset/services/crypto_manager/src/
H A Dsecret_key.rs75 alias.extend_from_slice(&calling_info.owner_type().to_le_bytes()); in calculate_key_alias()