Home
last modified time | relevance | path

Searched refs:Ok (Results 1 – 25 of 112) sorted by relevance

12345

/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/
DStructuredParcelable.rs188 Ok(()) in serialize_option()
203 if status == 0 { return Ok(None); } in deserialize_option()
212 return Ok(Some(result)); in deserialize_option()
216 return Ok(Some(result)); in deserialize_option()
220 return Ok(Some(result)); in deserialize_option()
224 return Ok(Some(result)); in deserialize_option()
228 return Ok(Some(result)); in deserialize_option()
232 return Ok(Some(result)); in deserialize_option()
236 return Ok(Some(result)); in deserialize_option()
240 return Ok(Some(result)); in deserialize_option()
[all …]
DParcelableForToString.rs95 Ok(()) in serialize_option()
110 if status == 0 { return Ok(None); } in deserialize_option()
119 return Ok(Some(result)); in deserialize_option()
123 return Ok(Some(result)); in deserialize_option()
127 return Ok(Some(result)); in deserialize_option()
131 return Ok(Some(result)); in deserialize_option()
135 return Ok(Some(result)); in deserialize_option()
139 return Ok(Some(result)); in deserialize_option()
143 return Ok(Some(result)); in deserialize_option()
147 return Ok(Some(result)); in deserialize_option()
[all …]
DITestService.rs366 Ok(()) in UnimplementedMethod()
377 Ok(_aidl_return) in UnimplementedMethod()
382 Ok(()) in Deprecated()
392 Ok(()) in Deprecated()
397 Ok(()) in TestOneway()
405 Ok(()) in TestOneway()
411 Ok(()) in RepeatBoolean()
422 Ok(_aidl_return) in RepeatBoolean()
428 Ok(()) in RepeatByte()
439 Ok(_aidl_return) in RepeatByte()
[all …]
DUnion.rs75 if status == 0 { return Ok(None); } in deserialize_option()
80 Ok(Some(Self::Ns(value))) in deserialize_option()
84 Ok(Some(Self::N(value))) in deserialize_option()
88 Ok(Some(Self::M(value))) in deserialize_option()
92 Ok(Some(Self::S(value))) in deserialize_option()
96 Ok(Some(Self::Ibinder(value))) in deserialize_option()
100 Ok(Some(Self::Ss(value))) in deserialize_option()
104 Ok(Some(Self::Be(value))) in deserialize_option()
DGenericStructuredParcelable.rs32 Ok(()) in serialize_option()
47 if status == 0 { return Ok(None); } in deserialize_option()
56 return Ok(Some(result)); in deserialize_option()
60 return Ok(Some(result)); in deserialize_option()
66 Ok(Some(result)) in deserialize_option()
/system/tools/aidl/tests/rust/
Dtest_service.rs47 Ok(self.0.clone()) in GetName()
57 Ok("OldName".into()) in RealName()
68 Ok("NewName".into()) in RealName()
82 Ok(token)
96 Ok(input.iter().rev().cloned().collect())
114 Ok(input.map(<[$type]>::to_vec))
133 Ok(()) in Deprecated()
150 Ok(input.into()) in RepeatString()
154 Ok(input.into()) in RepeatUtf8CppString()
166 Ok(other_service.to_owned()) in GetOtherTestService()
[all …]
Dtest_client.rs108 assert_eq!(result, Ok(())); in test_oneway()
117 assert_eq!(result, Ok(value));
164 assert_eq!(result.as_ref(), Ok(input)); in test_repeat_string()
180 assert_eq!(result, Ok(array));
249 assert_eq!(got.GetName().as_ref().map(String::as_ref), Ok(NAME)); in test_binder_exchange()
250 assert_eq!(service.VerifyName(&got, NAME), Ok(true)); in test_binder_exchange()
368 assert_eq!(result, Ok(value));
371 assert_eq!(result, Ok(None));
416 assert_eq!(result, Ok(value)); in test_nullable_parcelable()
419 assert_eq!(result, Ok(None)); in test_nullable_parcelable()
[all …]
/system/security/keystore2/src/database/
Dversioning.rs48 |_| Ok(()), in create_or_get_version()
63 Ok(version) in create_or_get_version()
71 Ok(()) in update_version()
112 Ok(i + 1) in upgrade_database_test()
201 Ok("version".to_owned()), in create_or_get_version_new_database()
212 Ok(1), in create_or_get_version_new_database()
219 Ok(3), in create_or_get_version_new_database()
238 Ok(1), in create_or_get_version_new_database()
260 Ok(1), in create_or_get_version_new_database()
267 Ok(5), in create_or_get_version_new_database()
[all …]
/system/extras/profcollectd/libprofcollectd/
Dlib.rs54 Ok(()) in init_service()
65 Ok(()) in schedule()
71 Ok(()) in terminate()
77 Ok(()) in trace_once()
83 Ok(()) in process()
88 Ok(get_profcollectd_service()?.report()?) in report()
Dscheduler.rs39 Ok(Scheduler { termination_ch: None, trace_provider: p }) in new()
59 Ok(_) => break, in schedule_periodic()
71 Ok(()) in schedule_periodic()
81 Ok(()) in terminate_periodic()
87 Ok(()) in one_shot()
102 Ok(()) in process()
/system/security/keystore2/src/
Dmaintenance.rs62 Ok(BnKeystoreMaintenance::new_binder( in new_native_binder()
100 Ok(()) in on_user_password_changed()
149 UserState::Uninitialized => Ok(AidlUserState::UNINITIALIZED), in get_state()
150 UserState::LskfUnlocked(_) => Ok(AidlUserState::LSKF_UNLOCKED), in get_state()
151 UserState::LskfLocked => Ok(AidlUserState::LSKF_LOCKED), in get_state()
169 Ok(()) in call_with_watchdog()
180 sec_levels.iter().fold(Ok(()), move |result, (sec_level, sec_level_string)| { in call_on_all_security_levels()
183 Ok(()) => log::info!( in call_on_all_security_levels()
216 Ok(()) in on_device_off_body()
271 map_or_log_err(Self::on_user_password_changed(user_id, password.map(|pw| pw.into())), Ok) in onUserPasswordChanged()
[all …]
Dlegacy_migrator.rs117 return Ok(()); in set_init()
125 Ok(()) in set_init()
140 return Ok(Self::STATE_EMPTY); in check_state()
156 return Ok(Self::STATE_EMPTY); in check_state()
175 return Ok(Self::STATE_READY); in check_state()
191 (Self::STATE_READY, _) => return Ok(Self::STATE_READY), in check_state()
204 _ => return Ok(Vec::new()), in list_uid()
206 self.do_serialized(move |state| state.list_uid(uid)).unwrap_or_else(|| Ok(Vec::new())).map( in list_uid()
230 Ok(LegacyMigrator::STATE_EMPTY) => return None, in do_serialized()
231 Ok(LegacyMigrator::STATE_READY) => {} in do_serialized()
[all …]
Dremote_provisioning.rs74 return Ok(false); in check_rem_prov_enabled()
83 Ok(pool_status.total != 0) in check_rem_prov_enabled()
107 |v| Ok(Some(v)), in get_rem_prov_attest_key()
120 |cert_chain| Ok(Some(cert_chain)), in get_rem_prov_attest_key()
123 _ => Ok(None), in get_rem_prov_attest_key()
138 Some(cert_chain) => Ok(Some(cert_chain)), in get_rem_prov_attest_key_helper()
145 Ok(None) in get_rem_prov_attest_key_helper()
183 Ok(None) in get_remotely_provisioned_attestation_key_and_certs()
195 Ok(None) in get_remotely_provisioned_attestation_key_and_certs()
197 Ok(v) => match v { in get_remotely_provisioned_attestation_key_and_certs()
[all …]
Ddatabase.rs148 Ok(()) in load_from_db()
152 Ok(Self { data: metadata }) in load_from_db()
169 Ok(()) in store_in_db()
223 Ok(()) in load_from_db()
227 Ok(Self { data: metadata }) in load_from_db()
244 Ok(()) in store_in_db()
263 Ok(ToSqlOutput::Owned(Value::Integer(match self { in to_sql()
274 0 => Ok(KeyType::Client), in column_result()
275 1 => Ok(KeyType::Super), in column_result()
276 2 => Ok(KeyType::Attestation), in column_result()
[all …]
Dservice.rs77 if let Ok((dev, uuid)) = in new_native_binder()
94 Ok(BnKeystoreService::new_binder( in new_native_binder()
158 Ok(KeyEntryResponse { in get_key_entry()
201 Some(Error::Rc(ResponseCode::KEY_NOT_FOUND)) => Ok(None), in update_subcomponent()
204 Ok(v) => Ok(Some(v)), in update_subcomponent()
215 return Ok(()); in update_subcomponent()
251 Ok(()) in update_subcomponent()
288 Ok(()) => {} in list_entries()
306 Ok(result) in list_entries()
319 Ok(()) in delete_key()
[all …]
Doperation.rs237 if let Ok(guard) = self.outcome.try_lock() { in get_pruning_info()
263 Ok(guard) => match *guard { in prune()
287 Ok(km_op) => km_op, in prune()
301 Ok(()) in prune()
318 Ok(_) => (), in update_outcome()
331 Outcome::Unknown => Ok(guard), in check_active()
347 Ok(()) in check_input_length()
381 Ok(()) in update_aad()
409 Ok(None) in update()
411 Ok(Some(output)) in update()
[all …]
Dlegacy_blob.rs345 Ok(Blob { flags, value: BlobValue::Generic(value.to_vec()) }) in new_from_stream()
348 Ok(Blob { flags, value: BlobValue::Characteristics(value.to_vec()) }) in new_from_stream()
351 Ok(Blob { flags, value: BlobValue::CharacteristicsCache(value.to_vec()) }) in new_from_stream()
353 (blob_types::SUPER_KEY, _, Some(salt)) => Ok(Blob { in new_from_stream()
363 (blob_types::SUPER_KEY_AES256, _, Some(salt)) => Ok(Blob { in new_from_stream()
373 (blob_types::KM_BLOB, true, _) => Ok(Blob { in new_from_stream()
381 (blob_types::KM_BLOB, false, _) => Ok(Blob { in new_from_stream()
416 BlobValue::Encrypted { iv, tag, data } => Ok(Blob { in new_from_stream_decrypt_with()
423 BlobValue::PwEncrypted { iv, tag, data, salt, key_size } => Ok(Blob { in new_from_stream_decrypt_with()
430 _ => Ok(blob), in new_from_stream_decrypt_with()
[all …]
Dsuper_key.rs186 Ok(LockedKey { algorithm: to_encrypt.algorithm, id: to_encrypt.id, nonce, ciphertext }) in new()
222 Ok(Arc::new(SuperKey { algorithm: self.algorithm, key, id: self.id, reencrypt_with })) in decrypt()
268 Ok(()) in add_key_to_key_index()
288 return Ok(()); in set_up_boot_level_cache()
300 Ok(()) in set_up_boot_level_cache()
334 Ok(()) in watch_boot_level()
356 Ok(()) in install_per_boot_key_for_user()
361 Ok(match key_id { in lookup_key()
428 Ok(()) in unlock_user_key()
438 Ok(if let Some(key_id) = SuperKeyIdentifier::from_metadata(metadata) { in unwrap_key_if_required()
[all …]
Dauthorization.rs114 Ok(BnKeystoreAuthorization::new_binder( in new_native_binder()
125 Ok(()) in add_auth_token()
177 Ok(()) in on_lock_screen_event()
187 Ok(()) in on_lock_screen_event()
200 Ok(()) in on_lock_screen_event()
229 Ok(AuthorizationTokens { authToken: auth_token, timestampToken: ts_token }) in get_auth_tokens_for_credstore()
238 map_or_log_err(self.add_auth_token(auth_token), Ok) in addAuthToken()
259 Ok, in onLockScreenEvent()
276 Ok, in getAuthTokensForCredStore()
Draw_device.rs68 Ok(KeyMintDevice { in get()
81 Some(Error::Km(ErrorCode::HARDWARE_TYPE_UNAVAILABLE)) => Ok(None), in get_or_none()
132 Ok(()) in create_and_store_key()
151 db.load_key_entry(&key_desc, key_type, KeyEntryLoadBits::KM, AID_KEYSTORE, |_, _| Ok(())) in lookup_from_desc()
160 Ok(result) => Ok(Some(result)), in not_found_is_none()
162 Some(&Error::Rc(ResponseCode::KEY_NOT_FOUND)) => Ok(None), in not_found_is_none()
223 return Ok((key_id_guard, key_blob)); in lookup_or_generate_key()
237 Ok(( in lookup_or_generate_key()
286 Ok(( in upgrade_keyblob_if_required_with()
293 result => Ok(( in upgrade_keyblob_if_required_with()
/system/bt/gd/rust/linux/mgmt/src/bin/btmanagerd/
Dmain.rs51 Ok(()) => ctx.reply(Ok(())), in main()
66 Ok(()) => ctx.reply(Ok(())), in main()
84 ctx.reply(Ok((result,))) in main()
97 Ok(()) => ctx.reply(Ok(())), in main()
116 Ok(()) => ctx.reply(Ok(())), in main()
/system/vold/
DVoldNativeServiceValidation.cpp33 binder::Status Ok() { in Ok() function
46 return Ok(); in CheckPermission()
56 return Ok(); in CheckUidOrRoot()
73 return Ok(); in CheckArgumentId()
94 return Ok(); in CheckArgumentPath()
105 return Ok(); in CheckArgumentHex()
/system/security/keystore2/selinux/src/
Dlib.rs141 Ok(Self::CString( in new()
180 Ok(KeystoreKeyBackend { handle }) in new()
210 Ok(Context::Raw(con)) in lookup()
239 Ok(Context::Raw(con)) in getcon()
263 Ok(Context::Raw(con)) in getpidcon()
304 0 => Ok(()), in check_access()
339 "u:r:su:s0" => Ok((context, SU_KEY_NAMESPACE, true)), in check_context()
340 "u:r:shell:s0" => Ok((context, SHELL_KEY_NAMESPACE, false)), in check_context()
351 Ok(()) in test_getcon()
360 assert_eq!(context.to_str(), Ok("u:object_r:su_key:s0")); in test_label_lookup()
[all …]
/system/security/keystore2/legacykeystore/
Dlib.rs51 Ok(db) in new()
66 Ok(result) in with_transaction()
68 Ok(result) => break Ok(result), in with_transaction()
100 Ok(()) in init_tables()
125 Ok(()) in put()
149 Ok(removed == 1) in remove()
157 Ok(()) in remove_uid()
168 Ok(()) in remove_user()
294 Ok(calling_uid) in get_effective_uid()
300 Ok(Self::AID_WIFI) in get_effective_uid()
[all …]
/system/security/keystore2/src/crypto/
Dlib.rs53 Ok(key) in generate_aes256_key()
69 Ok(data) in generate_random_data()
115 true => Ok(result), in aes_gcm_decrypt()
152 Ok((ciphertext, iv, tag)) in aes_gcm_encrypt()
213 Ok(result) in derive_key()
218 Ok(Password::Owned(ZVec::try_from(self.get_key())?)) in try_clone()
249 Ok(buf) in hkdf_extract()
263 Ok(buf) in hkdf_expand()
334 Ok(buf) in ecdh_compute_key()
344 Ok(ECKey(key)) in ec_key_generate_key()
[all …]

12345