Home
last modified time | relevance | path

Searched refs:ffi (Results 1 – 25 of 28) sorted by relevance

12

/system/bt/gd/rust/topshim/src/
Dbtif.rs79 pub mod ffi { module
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>,
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>,
268 internal: cxx::UniquePtr<ffi::BluetoothIntf>,
273 BluetoothInterface { internal: ffi::Load() } in new()
[all …]
/system/bt/gd/rust/shim/src/
Dhci.rs3 use crate::bridge::ffi;
11 unsafe impl Send for ffi::u8SliceCallback {}
12 unsafe impl Send for ffi::u8SliceOnceCallback {}
15 cb: cxx::UniquePtr<ffi::u8SliceCallback>,
38 callback: cxx::UniquePtr<ffi::u8SliceOnceCallback>, in hci_send_command()
79 pub fn hci_set_acl_callback(hci: &mut Hci, cb: cxx::UniquePtr<ffi::u8SliceCallback>) { in hci_set_acl_callback()
83 pub fn hci_set_evt_callback(hci: &mut Hci, cb: cxx::UniquePtr<ffi::u8SliceCallback>) { in hci_set_evt_callback()
87 pub fn hci_set_le_evt_callback(hci: &mut Hci, cb: cxx::UniquePtr<ffi::u8SliceCallback>) { in hci_set_le_evt_callback()
Dmessage_loop_thread.rs11 mod ffi { module
32 unsafe impl Send for ffi::OnceClosure {}
36 tx: UnboundedSender<cxx::UniquePtr<ffi::OnceClosure>>,
43 let (tx, mut rx) = unbounded_channel::<cxx::UniquePtr<ffi::OnceClosure>>(); in main_message_loop_thread_create()
61 closure: cxx::UniquePtr<ffi::OnceClosure>, in main_message_loop_thread_do_delayed()
Dinit_flags.rs2 mod ffi { module
Dbridge.rs8 pub mod ffi { module
/system/bt/gd/rust/common/src/
Dsys_prop.rs6 pub mod ffi { module
15 use wrap::ffi;
20 let value = ffi::get(name); in get()
/system/extras/profcollectd/libprofcollectd/bindings/libflags/
Dlib.rs20 pub use ffi::GetServerConfigurableFlag;
23 mod ffi { module
/system/extras/profcollectd/libprofcollectd/bindings/libbase/
Dlib.rs19 pub use ffi::{GetProperty, SetProperty};
23 mod ffi { module
/system/bt/gd/rust/hal/src/
Dhidl_hal.rs28 ffi::start_hal(); in provide_hidl_hal()
39 mod ffi { module
109 Some(cmd) = cmd_rx.recv() => ffi::send_command(&cmd.to_bytes()), in dispatch_outgoing()
110 Some(acl) = acl_rx.recv() => ffi::send_acl(&acl.to_bytes()), in dispatch_outgoing()
111 Some(iso) = iso_rx.recv() => ffi::send_iso(&iso.to_bytes()), in dispatch_outgoing()
/system/security/keystore2/src/crypto/
Dzvec.rs38 unsafe { mlock(b.as_ptr() as *const std::ffi::c_void, b.len()) }?; in new()
60 unsafe { munlock(self.elems.as_ptr() as *const std::ffi::c_void, self.elems.len()) } in drop()
115 unsafe { mlock(b.as_ptr() as *const std::ffi::c_void, b.len()) }?; in try_from()
/system/bt/gd/rust/linux/adapter/src/
Dmain.rs2 use bt_topshim::btif::{ffi, BluetoothCallbacks, BluetoothInterface};
19 AdapterPropertiesChanged(i32, i32, Vec<ffi::BtProperty>),
20 RemoteDevicePropertiesChanged(i32, ffi::RustRawAddress, i32, Vec<ffi::BtProperty>),
21 DeviceFound(i32, Vec<ffi::BtProperty>),
/system/bt/gd/rust/common/
DAndroid.bp75 local_include_dirs: ["src/ffi"],
76 srcs: ["src/ffi/sys_prop.cc"],
DBUILD.gn36 sources = [ "src/ffi/sys_props.cc" ]
38 include_dirs = [ "src/ffi" ]
/system/bt/gd/rust/hal/
DAndroid.bp69 srcs: ["src/ffi/hidl.cc"],
70 local_include_dirs: ["src/ffi"],
/system/bt/gd/rust/linux/stack/src/
Dbluetooth.rs3 use bt_topshim::btif::ffi;
95 properties: Vec<ffi::BtProperty>, in adapter_properties_changed()
136 properties: Vec<ffi::BtProperty>, in adapter_properties_changed()
Dlib.rs12 use bt_topshim::btif::ffi;
59 BluetoothAdapterPropertiesChanged(i32, i32, Vec<ffi::BtProperty>),
/system/security/keystore2/apc_compat/
Dapc_compat.rs30 use std::{ffi::CString, slice};
161 data: cb_data_ptr as *mut std::ffi::c_void, in prompt_user_confirmation()
/system/security/keystore2/system_property/
Dlib.rs23 ffi::{c_void, CStr, CString},
33 BadNameError(#[from] std::ffi::NulError),
/system/extras/simpleperf/rust/
Dlib.rs20 use std::ffi::CString;
/system/security/keystore2/src/vintf/
Dlib.rs20 use std::ffi::{CStr, CString};
/system/logging/rust/
Dlogger.rs19 use std::ffi::CString;
/system/extras/profcollectd/libprofcollectd/
Dservice.rs23 use std::ffi::CString;
/system/security/keystore2/legacykeystore/
Dlib.rs83 e.root_cause().downcast_ref::<rusqlite::ffi::Error>(), in is_locked_error()
84 Some(rusqlite::ffi::Error { code: rusqlite::ErrorCode::DatabaseBusy, .. }) in is_locked_error()
85 | Some(rusqlite::ffi::Error { code: rusqlite::ErrorCode::DatabaseLocked, .. }) in is_locked_error()
/system/bt/gd/rust/linux/mgmt/src/bin/btmanagerd/
Dstate_machine.rs160 if event.name == Some(std::ffi::OsStr::new("bluetooth.pid")) { in mainloop()
181 if event.name == Some(std::ffi::OsStr::new("bluetooth.pid")) { in mainloop()
/system/security/keystore2/selinux/src/
Dlib.rs30 use std::ffi::{CStr, CString};

12