Lines Matching refs:ec
214 Some(Error::Km(ec)) => ec.0, in get_error_code()
246 fn nested_nested_ec(ec: ErrorCode) -> anyhow::Result<()> { in nested_nested_ec()
247 Err(anyhow!(Error::Km(ec))).context("nested nested ec") in nested_nested_ec()
250 fn nested_ec(ec: ErrorCode) -> anyhow::Result<()> { in nested_ec()
251 nested_nested_ec(ec).context("nested ec") in nested_ec()
311 for ec in ErrorCode::UNKNOWN_ERROR.0..ErrorCode::ROOT_OF_TRUST_ALREADY_SET.0 { in keystore_error_test()
313 Result::<(), i32>::Err(ec), in keystore_error_test()
314 map_or_log_err(nested_ec(ErrorCode(ec)), |_| Err(BinderStatus::ok())) in keystore_error_test()
321 for ec in ErrorCode::UNKNOWN_ERROR.0..ErrorCode::ROOT_OF_TRUST_ALREADY_SET.0 { in keystore_error_test()
323 Result::<(), i32>::Err(ec), in keystore_error_test()
325 map_km_error(binder_sse_error(ec)) in keystore_error_test()
326 .with_context(|| format!("Km error code: {}.", ec)), in keystore_error_test()