Lines Matching refs:owner_info
28 owner_info: Vec<u8>, 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()
49 let mut owner_info = Vec::new(); in build() localVariable
52 owner_info.append(&mut hap_info.app_id.clone()); in build()
53 owner_info.append(&mut "_".to_string().as_bytes().to_vec()); in build()
54 owner_info.append(&mut hap_info.app_index.to_string().as_bytes().to_vec()); in build()
57 owner_info.append(&mut process_info.process_name.clone()); in build()
58 owner_info.append(&mut "_".to_string().as_bytes().to_vec()); in build()
59 owner_info.append(&mut native_info.uid.to_string().as_bytes().to_vec()); in build()
67 CallingInfo { user_id: user_id as i32, owner_type: process_info.owner_type, owner_info } in build()
81 pub fn owner_info(&self) -> &Vec<u8> { in owner_info() method
82 &self.owner_info in owner_info()
94 let owner_info_str = String::from_utf8_lossy(self.owner_info()).to_string(); in app_index()
125 let owner_info = "test_app_id_0".as_bytes().to_vec(); in test_build_callig_info_specific_and_hap() localVariable
126 assert_eq!(calling_info.owner_info(), &owner_info); in test_build_callig_info_specific_and_hap()
144 let owner_info = "test_app_id_0".as_bytes().to_vec(); in test_build_callig_info_hap() localVariable
145 assert_eq!(calling_info.owner_info(), &owner_info); in test_build_callig_info_hap()
162 let owner_info = "test_process_999".as_bytes().to_vec(); in test_build_callig_info_native() localVariable
163 assert_eq!(calling_info.owner_info(), &owner_info); in test_build_callig_info_native()
182 let owner_info = "test_process_999".as_bytes().to_vec(); in test_build_callig_info_specific_and_native() localVariable
183 assert_eq!(calling_info.owner_info(), &owner_info); in test_build_callig_info_specific_and_native()