/system/security/keystore2/src/ |
D | maintenance.rs | 19 use crate::error::map_or_log_err; 271 map_or_log_err(Self::on_user_password_changed(user_id, password.map(|pw| pw.into())), Ok) in onUserPasswordChanged() 276 map_or_log_err(self.add_or_remove_user(user_id), Ok) in onUserAdded() 281 map_or_log_err(self.add_or_remove_user(user_id), Ok) in onUserRemoved() 286 map_or_log_err(self.clear_namespace(domain, nspace), Ok) in clearNamespace() 291 map_or_log_err(Self::get_state(user_id), Ok) in getState() 296 map_or_log_err(Self::early_boot_ended(), Ok) in earlyBootEnded() 301 map_or_log_err(Self::on_device_off_body(), Ok) in onDeviceOffBody() 310 map_or_log_err(Self::migrate_key_namespace(source, destination), Ok) in migrateKeyNamespace() 315 map_or_log_err(Self::delete_all_keys(), Ok) in deleteAllKeys()
|
D | error.rs | 167 pub fn map_or_log_err<T, U, F>(result: anyhow::Result<U>, handle_ok: F) -> BinderResult<T> in map_or_log_err() function 304 map_or_log_err(nested_rc(ResponseCode(rc)), |_| Err(BinderStatus::ok())) in keystore_error_test() 314 map_or_log_err(nested_ec(ErrorCode(ec)), |_| Err(BinderStatus::ok())) in keystore_error_test() 324 map_or_log_err( in keystore_error_test() 341 map_or_log_err(sse.context("Non negative service specific error."), |_| Err( in keystore_error_test() 353 map_or_log_err(binder_exception.context("Binder Exception."), |_| Err( in keystore_error_test() 362 map_or_log_err(nested_selinux_perm(), |_| Err(BinderStatus::ok())) in keystore_error_test() 369 map_or_log_err(nested_other_error(), |_| Err(BinderStatus::ok())) in keystore_error_test() 374 assert_eq!(Ok(ResponseCode::LOCKED), map_or_log_err(nested_ok(ResponseCode::LOCKED), Ok)); in keystore_error_test() 377 map_or_log_err(nested_ok(ResponseCode::SYSTEM_ERROR), Ok) in keystore_error_test()
|
D | metrics.rs | 17 use crate::error::map_or_log_err; 54 map_or_log_err(self.pull_metrics(atom_id), Ok) in pullMetrics()
|
D | service.rs | 37 error::{self, map_or_log_err, ErrorCode}, 365 map_or_log_err(self.get_security_level(security_level), Ok) in getSecurityLevel() 369 map_or_log_err(self.get_key_entry(key), Ok) in getKeyEntry() 378 map_or_log_err(self.update_subcomponent(key, public_cert, certificate_chain), Ok) in updateSubcomponent() 386 map_or_log_err(self.list_entries(domain, namespace), Ok) in listEntries() 392 map_or_log_err(result, Ok) in deleteKey() 401 map_or_log_err(self.grant(key, grantee_uid, access_vector.into()), Ok) in grant() 405 map_or_log_err(self.ungrant(key, grantee_uid), Ok) in ungrant()
|
D | remote_provisioning.rs | 44 use crate::error::{self, map_or_log_err, map_rem_prov_error, Error}; 434 map_or_log_err(get_pool_status(expired_by, sec_level), Ok) in getPoolStatus() 448 map_or_log_err( in generateCsr() 471 map_or_log_err( in provisionCertChain() 483 map_or_log_err(self.generate_key_pair(is_test_mode, sec_level), Ok) in generateKeyPair() 488 map_or_log_err(self.get_implementation_info(), Ok) in getImplementationInfo() 493 map_or_log_err(self.delete_all_keys(), Ok) in deleteAllKeys()
|
D | authorization.rs | 68 pub fn map_or_log_err<T, U, F>(result: Result<U>, handle_ok: F) -> BinderResult<T> in map_or_log_err() function 238 map_or_log_err(self.add_auth_token(auth_token), Ok) in addAuthToken() 252 map_or_log_err( in onLockScreenEvent() 270 map_or_log_err( in getAuthTokensForCredStore()
|
D | apc.rs | 97 pub fn map_or_log_err<T, U, F>(result: Result<U>, handle_ok: F) -> BinderResult<T> in map_or_log_err() function 368 map_or_log_err( in presentPrompt() 378 map_or_log_err(self.cancel_prompt(listener), Ok) in cancelPrompt() 382 map_or_log_err(Self::is_supported(), Ok) in isSupported()
|
D | security_level.rs | 22 use crate::error::{self, map_km_error, map_or_log_err, Error, ErrorCode}; 970 map_or_log_err(self.create_operation(key, operation_parameters, forced), Ok) in createOperation() 986 map_or_log_err(result, Ok) in generateKey() 1000 map_or_log_err(result, Ok) in importKey() 1015 map_or_log_err(result, Ok) in importWrappedKey() 1022 map_or_log_err(self.convert_storage_key_to_ephemeral(storage_key), Ok) in convertStorageKeyToEphemeral() 1028 map_or_log_err(result, Ok) in deleteKey()
|
D | operation.rs | 129 use crate::error::{map_err_with, map_km_error, map_or_log_err, Error, ErrorCode, ResponseCode}; 846 map_or_log_err( in updateAad() 857 map_or_log_err( in update() 871 map_or_log_err( in finish()
|
/system/security/keystore2/legacykeystore/ |
D | lib.rs | 213 fn map_or_log_err<T, U, F>(result: Result<U>, handle_ok: F) -> BinderResult<T> in map_or_log_err() function 504 map_or_log_err(self.legacy_keystore.get(alias, uid), Ok) in get() 508 map_or_log_err(self.legacy_keystore.put(alias, uid, entry), Ok) in put() 512 map_or_log_err(self.legacy_keystore.remove(alias, uid), Ok) in remove() 516 map_or_log_err(self.legacy_keystore.list(prefix, uid), Ok) in list()
|