Home
last modified time | relevance | path

Searched refs:PropertyWatcherError (Results 1 – 2 of 2) sorted by relevance

/aosp12/system/security/keystore2/system_property/
H A Dlib.rs30 pub enum PropertyWatcherError { enum
58 pub type Result<T> = std::result::Result<T, PropertyWatcherError>;
128 let prop_info = self.get_prop_info().ok_or(PropertyWatcherError::SystemPropertyAbsent)?; in read()
129 let mut result = Err(PropertyWatcherError::ReadCallbackNotCalled); in read()
133 let name = name.ok_or(PropertyWatcherError::MissingCString)?.to_str()?; in read()
134 let value = value.ok_or(PropertyWatcherError::MissingCString)?.to_str()?; in read()
135 f(name, value).map_err(PropertyWatcherError::CallbackError) in read()
161 return Err(PropertyWatcherError::WaitFailed); in wait_for_property_creation()
190 return Err(PropertyWatcherError::WaitFailed); in wait()
215 Err(anyhow!(PropertyWatcherError::SetPropertyFailed)) in write()
/aosp12/system/security/keystore2/src/
H A Dmetrics_store.rs49 use keystore2_system_property::{write, PropertyWatcher, PropertyWatcherError};
617 error.root_cause().downcast_ref::<PropertyWatcherError>(), in update_keystore_crash_sysprop()
618 Some(PropertyWatcherError::SystemPropertyAbsent) in update_keystore_crash_sysprop()