Home
last modified time | relevance | path

Searched refs:dyn (Results 1 – 25 of 56) sorted by relevance

123

/system/bt/gd/rust/gddi/src/
Dlib.rs12 type InstanceBox = Box<dyn Any + Send + Sync>;
14 pub type ProviderFutureBox = Box<dyn Future<Output = Box<dyn Any>> + Send + Sync>;
15 type ProviderFnBox = Box<dyn Fn(Arc<Registry>) -> Pin<ProviderFutureBox> + Send + Sync>;
32 start_order: Arc<Mutex<Vec<Box<dyn Stoppable + Send + Sync>>>>,
/system/bt/gd/rust/linux/dbus_projection/src/
Dlib.rs15 callbacks: Arc<Mutex<HashMap<BusName<'static>, Vec<Box<dyn Fn() + Send>>>>>,
27 pub fn add(&mut self, address: BusName<'static>, callback: Box<dyn Fn() + Send>) { in add()
86 ) -> Result<$enum_type, Box<dyn Error>> {
97 fn to_dbus(data: $enum_type) -> Result<i32, Box<dyn Error>> {
/system/bt/gd/rust/topshim/src/
Dbtif.rs250 pub adapter_state_changed: Box<dyn Fn(BtState) + Send>,
251 pub adapter_properties_changed: Box<dyn Fn(i32, i32, Vec<ffi::BtProperty>) + Send>,
253 Box<dyn Fn(i32, ffi::RustRawAddress, i32, Vec<ffi::BtProperty>) + Send>,
254 pub device_found: Box<dyn Fn(i32, Vec<ffi::BtProperty>) + Send>,
255 pub discovery_state_changed: Box<dyn Fn(BtDiscoveryState) + Send>,
256 pub pin_request: Box<dyn Fn(ffi::RustRawAddress, String, u32, bool) + Send>,
257 pub ssp_request: Box<dyn Fn(ffi::RustRawAddress, String, u32, i32, u32) + Send>,
258 pub bond_state_changed: Box<dyn Fn(i32, ffi::RustRawAddress, i32) + Send>,
259 pub acl_state_changed: Box<dyn Fn(i32, ffi::RustRawAddress, i32, i32) + Send>,
/system/bt/gd/rust/linux/dbus_projection/dbus_macros/src/
Dlib.rs174 type ObjType = std::sync::Arc<std::sync::Mutex<dyn #api_iface_ident + Send>>; in generate_dbus_exporter()
356 ) -> Result<#struct_ident, Box<dyn Error>> { in dbus_propmap()
365 fn to_dbus(data: #struct_ident) -> Result<dbus::arg::PropMap, Box<dyn Error>> { in dbus_propmap()
472 fn register_disconnect(&mut self, _disconnect_callback: Box<dyn Fn() + Send>) {} in dbus_proxy_obj()
487 fn register_disconnect(&mut self, disconnect_callback: Box<dyn Fn() + Send>) { in dbus_proxy_obj()
492 impl DBusArg for Box<dyn #trait_ + Send> { in dbus_proxy_obj()
500 ) -> Result<Box<dyn #trait_ + Send>, Box<dyn Error>> { in dbus_proxy_obj()
504 fn to_dbus(_data: Box<dyn #trait_ + Send>) -> Result<Path<'static>, Box<dyn Error>> { in dbus_proxy_obj()
562 ) -> Result<Self, Box<dyn Error>> in generate_dbus_arg()
566 fn to_dbus(x: Self) -> Result<Self::DBusType, Box<dyn Error>>; in generate_dbus_arg()
[all …]
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/
DIDeprecated.rs26 pub type IDeprecatedDefaultRef = Option<std::sync::Arc<dyn IDeprecatedDefault>>;
36 fn on_transact(_aidl_service: &dyn IDeprecated, _aidl_code: binder::TransactionCode, _aidl_data: &b… in on_transact()
DINewName.rs30 pub type INewNameDefaultRef = Option<std::sync::Arc<dyn INewNameDefault>>;
56 fn on_transact(_aidl_service: &dyn INewName, _aidl_code: binder::TransactionCode, _aidl_data: &bind… in on_transact()
DINamedCallback.rs30 pub type INamedCallbackDefaultRef = Option<std::sync::Arc<dyn INamedCallbackDefault>>;
56 fn on_transact(_aidl_service: &dyn INamedCallback, _aidl_code: binder::TransactionCode, _aidl_data:… in on_transact()
DIOldName.rs30 pub type IOldNameDefaultRef = Option<std::sync::Arc<dyn IOldNameDefault>>;
56 fn on_transact(_aidl_service: &dyn IOldName, _aidl_code: binder::TransactionCode, _aidl_data: &bind… in on_transact()
/system/bt/gd/rust/linux/stack/src/
Dbluetooth_gatt.rs9 fn register_scanner(&self, callback: Box<dyn IScannerCallback + Send>); in register_scanner()
71 fn register_scanner(&self, _callback: Box<dyn IScannerCallback + Send>) { in register_scanner()
Dbluetooth.rs24 fn register_callback(&mut self, callback: Box<dyn IBluetoothCallback + Send>); in register_callback()
53 callbacks: Vec<(u32, Box<dyn IBluetoothCallback + Send>)>,
161 fn register_callback(&mut self, mut callback: Box<dyn IBluetoothCallback + Send>) { in register_callback()
/system/security/keystore2/src/
Dapc.rs205 ) -> Result<Strong<dyn IProtectedConfirmation>> { in new_native_binder()
256 if let Ok(listener) = callback.into_interface::<dyn IConfirmationCallback>() { in result()
270 listener: &binder::Strong<dyn IConfirmationCallback>, in present_prompt()
329 fn cancel_prompt(&self, listener: &binder::Strong<dyn IConfirmationCallback>) -> Result<()> { in cancel_prompt()
360 listener: &binder::Strong<dyn IConfirmationCallback>, in presentPrompt()
375 listener: &binder::Strong<dyn IConfirmationCallback>, in cancelPrompt()
Dmaintenance.rs54 delete_listener: Box<dyn DeleteListener + Send + Sync + 'static>,
60 delete_listener: Box<dyn DeleteListener + Send + Sync + 'static>, in new_native_binder()
61 ) -> Result<Strong<dyn IKeystoreMaintenance>> { in new_native_binder()
157 F: Fn(Strong<dyn IKeyMintDevice>) -> binder::public_api::Result<()>, in call_with_watchdog()
161 let km_dev: Strong<dyn IKeyMintDevice> = dev in call_with_watchdog()
174 F: Fn(Strong<dyn IKeyMintDevice>) -> binder::public_api::Result<()>, in call_on_all_security_levels()
Dasync_task.rs39 pub struct Shelf(HashMap<TypeId, Box<dyn Any + Send>>);
61 .insert(TypeId::of::<T>(), Box::new(v) as Box<dyn Any + Send>) in put()
70 .or_insert_with(|| Box::new(T::default()) as Box<dyn Any + Send>) in get_mut()
83 .or_insert_with(|| Box::new(init()) as Box<dyn Any + Send>) in get_or_put_with()
93 hi_prio_req: VecDeque<Box<dyn FnOnce(&mut Shelf) + Send>>,
94 lo_prio_req: VecDeque<Box<dyn FnOnce(&mut Shelf) + Send>>,
95 idle_fns: Vec<Arc<dyn Fn(&mut Shelf) + Send + Sync>>,
199 QueuedFn(Box<dyn FnOnce(&mut Shelf) + Send>), in spawn_thread()
200 IdleFns(Vec<Arc<dyn Fn(&mut Shelf) + Send + Sync>>), in spawn_thread()
Doperation.rs217 km_op: binder::Strong<dyn IKeyMintOperation>, in new()
285 let km_op: binder::public_api::Strong<dyn IKeyMintOperation> = in prune()
365 let km_op: binder::public_api::Strong<dyn IKeyMintOperation> = in update_aad()
391 let km_op: binder::public_api::Strong<dyn IKeyMintOperation> = in update()
424 let km_op: binder::public_api::Strong<dyn IKeyMintOperation> = in finish()
465 let km_op: binder::public_api::Strong<dyn IKeyMintOperation> = in abort()
516 km_op: binder::public_api::Strong<dyn IKeyMintOperation>, in create_operation()
796 ) -> binder::public_api::Strong<dyn IKeystoreOperation> { in new_native_binder()
Dshared_secret_negotiation.rs167 ) -> Vec<(Strong<dyn ISharedSecret>, SharedSecretParticipant)> { in connect_participants()
168 let mut connected_participants: Vec<(Strong<dyn ISharedSecret>, SharedSecretParticipant)> = in connect_participants()
200 let keystore_compat_service: Strong<dyn IKeystoreCompatService> = in connect_participants()
246 participants: Vec<(Strong<dyn ISharedSecret>, SharedSecretParticipant)>, in negotiate_shared_secret()
Dgc.rs48 Box<dyn Fn(&Uuid, &[u8]) -> Result<()> + Send + 'static>, in new_init_with()
87 invalidate_key: Box<dyn Fn(&Uuid, &[u8]) -> Result<()> + Send + 'static>,
Dglobals.rs169 let km_dev: Strong<dyn IKeyMintDevice> =
222 let keystore_compat_service: Strong<dyn IKeystoreCompatService> = in connect_keymint()
288 pub fn get_keymint_devices() -> Vec<Strong<dyn IKeyMintDevice>> { in get_keymint_devices()
313 let keystore_compat_service: Strong<dyn IKeystoreCompatService> = in connect_secureclock()
371 let rem_prov_hal: Strong<dyn IRemotelyProvisionedComponent> = in connect_remotely_provisioned_component()
/system/chre/platform/shared/
Dnanoapp_loader.cc749 DynamicHeader *dyn = nullptr; in getDynamicHeader() local
753 dyn = reinterpret_cast<DynamicHeader *>(programHeaders[i].p_offset + in getDynamicHeader()
758 return dyn; in getDynamicHeader()
774 NanoappLoader::ElfWord NanoappLoader::getDynEntry(DynamicHeader *dyn, in getDynEntry() argument
778 while (dyn->d_tag != DT_NULL) { in getDynEntry()
779 if (dyn->d_tag == field) { in getDynEntry()
780 rv = dyn->d_un.d_val; in getDynEntry()
783 ++dyn; in getDynEntry()
791 DynamicHeader *dyn = getDynamicHeader(); in fixRelocations() local
795 if ((dyn == nullptr) || (roSeg == nullptr)) { in fixRelocations()
[all …]
/system/unwinding/libunwindstack/
DElfInterface.cpp384 DynType dyn; in GetSoname() local
388 if (!memory_->ReadFully(offset, &dyn, sizeof(dyn))) { in GetSoname()
394 if (dyn.d_tag == DT_STRTAB) { in GetSoname()
395 strtab_addr = dyn.d_un.d_ptr; in GetSoname()
396 } else if (dyn.d_tag == DT_STRSZ) { in GetSoname()
397 strtab_size = dyn.d_un.d_val; in GetSoname()
398 } else if (dyn.d_tag == DT_SONAME) { in GetSoname()
399 soname_offset = dyn.d_un.d_val; in GetSoname()
400 } else if (dyn.d_tag == DT_NULL) { in GetSoname()
/system/security/keystore2/src/km_compat/
Dlib.rs43 fn get_device() -> Option<Strong<dyn IKeyMintDevice>> { in get_device()
45 let compat_service: Strong<dyn IKeystoreCompatService> = in get_device()
74 fn generate_key(legacy: &dyn IKeyMintDevice, kps: Vec<KeyParameter>) -> KeyCreationResult { in generate_key()
85 fn generate_rsa_key(legacy: &dyn IKeyMintDevice, encrypt: bool, attest: bool) -> Vec<u8> { in generate_rsa_key()
214 fn generate_aes_key(legacy: &dyn IKeyMintDevice) -> Vec<u8> { in generate_aes_key()
245 legacy: &dyn IKeyMintDevice, in begin()
339 let compat_service: binder::Strong<dyn IKeystoreCompatService> = in test_secure_clock()
360 let compat_service: binder::Strong<dyn IKeystoreCompatService> = in test_shared_secret()
/system/tools/aidl/tests/rust/
Dtest_service.rs74 service_map: Mutex<HashMap<String, binder::Strong<dyn INamedCallback::INamedCallback>>>,
160 ) -> binder::Result<binder::Strong<dyn INamedCallback::INamedCallback>> { in GetOtherTestService()
171 service: &binder::Strong<dyn INamedCallback::INamedCallback>, in VerifyName()
253 ) -> binder::Result<Option<binder::Strong<dyn INamedCallback::INamedCallback>>> { in GetCallback()
292 fn GetOldNameInterface(&self) -> binder::Result<binder::Strong<dyn IOldName::IOldName>> { in GetOldNameInterface()
299 fn GetNewNameInterface(&self) -> binder::Result<binder::Strong<dyn INewName::INewName>> { in GetNewNameInterface()
Dtest_client.rs39 fn get_test_service() -> binder::Strong<dyn ITestService::ITestService> { in get_test_service()
609 let service: binder::Strong<dyn IFooInterface::IFooInterface> = in test_versioned_interface_version()
619 let service: binder::Strong<dyn IFooInterface::IFooInterface> = in test_versioned_interface_hash()
632 let service: binder::Strong<dyn IFooInterface::IFooInterface> = in test_versioned_known_union_field_is_ok()
641 let service: binder::Strong<dyn IFooInterface::IFooInterface> = in test_versioned_unknown_union_field_triggers_error()
661 let service: binder::Strong<dyn IFooInterface::IFooInterface> = in test_array_of_parcelable_with_new_field()
672 let service: binder::Strong<dyn IFooInterface::IFooInterface> = in test_read_data_correctly_after_parcelable_with_new_field()
685 F: FnOnce(binder::Strong<dyn IOldName::IOldName>, binder::Strong<dyn INewName::INewName>), in test_renamed_interface()
728 .into_interface::<dyn INewName::INewName>(); in test_renamed_interface_old_as_new()
741 .into_interface::<dyn IOldName::IOldName>(); in test_renamed_interface_new_as_old()
/system/bt/gd/rust/hci/src/
Derror.rs10 pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
/system/unwinding/libunwindstack/tests/
DElfInterfaceTest.cpp545 Dyn dyn; in SonameInit() local
547 dyn.d_tag = DT_STRTAB; in SonameInit()
548 dyn.d_un.d_ptr = 0x10100; in SonameInit()
549 memory_.SetMemory(offset, &dyn, sizeof(dyn)); in SonameInit()
550 offset += sizeof(dyn); in SonameInit()
552 dyn.d_tag = DT_STRSZ; in SonameInit()
554 dyn.d_un.d_val = 0x10; in SonameInit()
556 dyn.d_un.d_val = 0x1000; in SonameInit()
558 memory_.SetMemory(offset, &dyn, sizeof(dyn)); in SonameInit()
559 offset += sizeof(dyn); in SonameInit()
[all …]
/system/extras/profcollectd/libprofcollectd/
Dtrace_provider.rs33 pub fn get_trace_provider() -> Result<Arc<Mutex<dyn TraceProvider + Send>>> { in get_trace_provider()

123