Lines Matching refs:Ok
42 Ok(Self { node_path: CString::new(node_path)?, prop_name: CString::new(prop_name)? }) in new()
68 Ok(value) => value, in get_debug_policy_bool()
69 Err(error) if error.kind() == ErrorKind::NotFound => return Ok(false), in get_debug_policy_bool()
76 0 => Ok(false), in get_debug_policy_bool()
77 1 => Ok(true), in get_debug_policy_bool()
87 Ok(Some(node)) => node, in get_fdt_prop_bool()
91 _ => return Ok(false), in get_fdt_prop_bool()
95 Ok(Some(0)) => Ok(false), in get_fdt_prop_bool()
96 Ok(Some(1)) => Ok(true), in get_fdt_prop_bool()
97 Ok(Some(_)) => Err(anyhow!("Invalid prop value {prop_name:?} in node {node_path:?}")), in get_fdt_prop_bool()
101 _ => Ok(false), in get_fdt_prop_bool()
113 Ok(fdt) => fdt, in from_overlay_onto_new_fdt()
141 Ok(Self { buffer: fdt_buf }) in from_overlay_onto_new_fdt()
172 Ok(debug_config) => { in new()
181 Ok(debug_config) => { in new()
225 Ok(Self { in from_custom_debug_overlay_policy()
234 Ok(Self { in from_host()
260 Ok(()) in test_read_avf_debug_policy_with_ramdump()
276 Ok(()) in test_read_avf_debug_policy_without_ramdump()
292 Ok(()) in test_read_avf_debug_policy_with_adb()
308 Ok(()) in test_read_avf_debug_policy_without_adb()
324 Ok(()) in test_invalid_sysprop_disables_debug_policy()
338 Ok(()) in test_new_with_debug_level()