Lines Matching refs:security_level
187 fn connect_keymint(security_level: &SecurityLevel) -> Result<(Asp, KeyMintHardwareInfo)> { in connect_keymint()
191 let service_name = match *security_level { in connect_keymint()
226 map_binder_status(keystore_compat_service.getKeyMintDevice(*security_level)) in connect_keymint()
261 security_level: &SecurityLevel, in get_keymint_device()
264 if let Some((dev, hw_info, uuid)) = devices_map.dev_by_sec_level(&security_level) { in get_keymint_device()
267 let (dev, hw_info) = connect_keymint(security_level).context("In get_keymint_device.")?; in get_keymint_device()
268 devices_map.insert(*security_level, dev, hw_info); in get_keymint_device()
270 Ok(devices_map.dev_by_sec_level(security_level).unwrap()) in get_keymint_device()
347 fn connect_remotely_provisioned_component(security_level: &SecurityLevel) -> Result<Asp> { in connect_remotely_provisioned_component()
351 let service_name = match *security_level { in connect_remotely_provisioned_component()
383 pub fn get_remotely_provisioned_component(security_level: &SecurityLevel) -> Result<Asp> { in get_remotely_provisioned_component()
385 if let Some(dev) = devices_map.dev_by_sec_level(&security_level) { in get_remotely_provisioned_component()
388 let dev = connect_remotely_provisioned_component(security_level) in get_remotely_provisioned_component()
390 devices_map.insert(*security_level, dev); in get_remotely_provisioned_component()
392 Ok(devices_map.dev_by_sec_level(security_level).unwrap()) in get_remotely_provisioned_component()