Home
last modified time | relevance | path

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

/system/security/keystore2/system_property/
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()
/system/security/keystore2/src/
Dmetrics_store.rs48 use keystore2_system_property::{write, PropertyWatcher, PropertyWatcherError};
612 error.root_cause().downcast_ref::<PropertyWatcherError>(), in update_keystore_crash_sysprop()
613 Some(PropertyWatcherError::SystemPropertyAbsent) in update_keystore_crash_sysprop()