Home
last modified time | relevance | path

Searched refs:OwnerType (Results 1 - 11 of 11) sorted by relevance

/base/security/asset/services/common/src/
H A Dcalling_info.rs20 use crate::{process_info::ProcessInfoDetail, OwnerType, ProcessInfo};
27 owner_type: OwnerType,
34 Self::new(0, OwnerType::Native, "asset_service_8100".as_bytes().to_vec()) in new_self()
39 Self::new(user_id, OwnerType::Native, "asset_service_8100".as_bytes().to_vec()) in new_part_info()
43 pub fn new(user_id: i32, owner_type: OwnerType, owner_info: Vec<u8>) -> Self { in new()
76 pub fn owner_type_enum(&self) -> OwnerType { in owner_type_enum()
102 owner_type: OwnerType::Hap, in test_build_callig_info_specific_and_hap()
122 owner_type: OwnerType::Hap, in test_build_callig_info_hap()
140 owner_type: OwnerType::Native, in test_build_callig_info_native()
159 owner_type: OwnerType in test_build_callig_info_specific_and_native()
[all...]
H A Dprocess_info.rs22 use crate::{get_user_id, OwnerType, SUCCESS};
103 pub owner_type: OwnerType,
131 let process_info_detail = match OwnerType::try_from(process_info_ffi.owner_type)? { in build()
132 OwnerType::Hap => { in build()
135 OwnerType::Native => ProcessInfoDetail::Native(NativeInfo { uid: process_info_ffi.native_info.uid }), in build()
140 owner_type: OwnerType::try_from(process_info_ffi.owner_type)?, in build()
H A Dlib.rs36 pub enum OwnerType { enum
/base/security/asset/services/os_dependency/inc/
H A Dbms_wrapper.h25 enum OwnerType { enum
42 OwnerType ownerType;
/base/security/asset/test/unittest/module_test/src/crypto_manager/
H A Dlib.rs19 use asset_common::{CallingInfo, OwnerType};
67 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in generate_and_delete()
80 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in encrypt_and_decrypt()
102 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in crypto_init()
115 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in crypto_exec()
134 let calling_info = CallingInfo::new(0, OwnerType::Native, vec![b'2']); in crypto_manager()
152 let calling_info_2 = CallingInfo::new(0, OwnerType::Native, vec![b'3']); in crypto_manager()
/base/security/asset/services/db_operator/src/
H A Ddatabase_file_upgrade.rs21 use asset_common::OwnerType;
50 pub fn construct_splited_db_name(owner_type: OwnerType, owner_info: &[u8], is_ce: bool) -> Result<String> { in construct_splited_db_name()
52 OwnerType::Hap => { in construct_splited_db_name()
66 OwnerType::Native => { 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()
H A Ddatabase.rs22 use asset_common::{CallingInfo, OwnerType};
210 pub fn build(user_id: i32, owner_type: OwnerType, owner_info: &[u8], is_ce: bool) -> Result<Database> { in build()
467 /// // SQL: insert into table_name(Owner,OwnerType,Alias,value) values('owner',1,'alias','insert_value')
470 /// datas.insert(column::OWNER_TYPE, Value::Number(OwnerType::Native as u32));
484 query.insert_attr(column::OWNER_TYPE, datas.get_enum_attr::<OwnerType>(&column::OWNER_TYPE)?); in insert_datas()
504 /// // SQL: delete from table_name where Owner='owner' and OwnerType=1 and Alias='alias' and value='delete_value'
507 /// datas.insert(column::OWNER_TYPE, Value::Number(OwnerType::Native as u32));
546 /// // SQL: update table_name set alias='update_value' where Owner='owner' and OwnerType=1 and Alias='alias'
549 /// cond.insert(column::OWNER_TYPE, Value::Number(OwnerType::Native as u32));
570 /// // SQL: select count(*) as count from table_name where Owner='owner' and OwnerType
[all...]
/base/security/asset/services/core_service/src/
H A Dstub.rs18 use asset_common::{AutoCounter, CallingInfo, OwnerType, ProcessInfo, ProcessInfoDetail};
73 params.insert(PARAM_NAME_IS_HAP, Value::Bool(process_info.owner_type == OwnerType::Hap)); in descriptor()
H A Dlib.rs31 use asset_common::{AutoCounter, CallingInfo, Counter, OwnerType};
124 .init(Box::new(AssetContext { user_id: 0, calling_info: CallingInfo::new(0, OwnerType::Hap, vec![]) })); in start_service()
/base/security/asset/services/core_service/src/common_event/
H A Dlistener.rs28 use asset_common::{AutoCounter, CallingInfo, OwnerType};
112 delete_cond.insert(column::OWNER_TYPE, Value::Number(OwnerType::Hap as u32)); in delete_on_package_removed()
139 let calling_info = CallingInfo::new(user_id, OwnerType::Hap, owner.clone()); in delete_data_by_owner()
/base/security/asset/services/plugin/src/
H A Dasset_plugin.rs16 use asset_common::{CallingInfo, Counter, OwnerType};
116 let owner_type = attributes.get_enum_attr::<OwnerType>(&column::OWNER_TYPE).map_err(|e| e.code as u32)?; in get_db_name()

Completed in 5 milliseconds