• Home
  • Raw
  • Download

Lines Matching refs:cb

123     let cb = GetRegistrationCallback::new_native_binder(tx);  in get_rkpd_registration()  localVariable
126 .getRegistration(&rpc_name, &cb) in get_rkpd_registration()
201 let cb = GetKeyCallback::new_native_binder(tx); in get_rkpd_attestation_key_from_registration_async() localVariable
204 .getKey(caller_uid.try_into().unwrap(), &cb) in get_rkpd_attestation_key_from_registration_async()
210 if let Err(e) = registration.cancelGetKey(&cb) { in get_rkpd_attestation_key_from_registration_async()
269 let cb = StoreUpgradedKeyCallback::new_native_binder(tx); in store_rkpd_attestation_key_with_registration_async() localVariable
272 .storeUpgradedKeyAsync(key_blob, upgraded_blob, &cb) in store_rkpd_attestation_key_with_registration_async()
366 fn getKey(&self, _: i32, cb: &Strong<dyn IGetKeyCallback>) -> binder::Result<()> { in getKey()
373 let get_key_cb = cb.clone(); in getKey()
394 cb: &Strong<dyn IStoreUpgradedKeyCallback>, in storeUpgradedKeyAsync()
399 let store_cb = cb.clone(); in storeUpgradedKeyAsync()
417 let cb = GetRegistrationCallback::new_native_binder(tx); in get_mock_registration() localVariable
420 assert!(cb.onSuccess(&mock_registration).is_ok()); in get_mock_registration()
441 let cb = GetRegistrationCallback::new_native_binder(tx); in test_get_registration_cb_cancel() localVariable
442 assert!(cb.onCancel().is_ok()); in test_get_registration_cb_cancel()
454 let cb = GetRegistrationCallback::new_native_binder(tx); in test_get_registration_cb_error() localVariable
455 assert!(cb.onError("error").is_ok()); in test_get_registration_cb_error()
469 let cb = GetKeyCallback::new_native_binder(tx); in test_get_key_cb_success() localVariable
470 assert!(cb.onSuccess(&mock_key).is_ok()); in test_get_key_cb_success()
479 let cb = GetKeyCallback::new_native_binder(tx); in test_get_key_cb_cancel() localVariable
480 assert!(cb.onCancel().is_ok()); in test_get_key_cb_cancel()
508 let cb = GetKeyCallback::new_native_binder(tx); in test_get_key_cb_error() localVariable
509 assert!(cb.onError(get_key_error, "error").is_ok()); in test_get_key_cb_error()
522 let cb = StoreUpgradedKeyCallback::new_native_binder(tx); in test_store_upgraded_cb_success() localVariable
523 assert!(cb.onSuccess().is_ok()); in test_store_upgraded_cb_success()
531 let cb = StoreUpgradedKeyCallback::new_native_binder(tx); in test_store_upgraded_key_cb_error() localVariable
532 assert!(cb.onError("oh no! it failed").is_ok()); in test_store_upgraded_key_cb_error()