/system/security/keystore2/apc_compat/ |
D | apc_compat.rs | 89 let hal_cb: Box<Box<Callback>> = unsafe { Box::from_raw(handle as *mut Box<Callback>) }; in confirmation_result_callback() 159 let cb_data_ptr = Box::into_raw(Box::new(Box::new(cb) as Box<Callback>)); in prompt_user_confirmation() 192 unsafe { Box::from_raw(cb_data_ptr) }; in prompt_user_confirmation()
|
/system/teeui/libteeui/src/ |
D | button.cpp | 27 Error ButtonImpl::draw(const PixelDrawer& drawPixel, const Box<pxs>& bounds, in draw() 31 Box<intpxs> intBounds(bounds); in draw() 41 auto drawBox = [&](const Box<intpxs>& box, Color c) -> Error { in draw() 53 auto drawDebugBox = [&](const Box<pxs>& box, Color c) { in draw() 65 Box<intpxs> cBounds(intBounds.x(), intBounds.y(), intRadius, intRadius); in draw() 89 Box<intpxs>(0, 0, intRadius, intRadius).translate(intBounds.topLeft()), color_)) { in draw() 97 if (auto error = drawBox(Box<intpxs>(intBounds.w() - intRadius, 0, intRadius, intRadius) in draw() 107 if (auto error = drawBox(Box<intpxs>(0, intBounds.h() - intRadius, intRadius, intRadius) in draw() 117 if (auto error = drawBox(Box<intpxs>(intBounds.w() - intRadius, intBounds.h() - intRadius, in draw() 125 auto centerbox = Box<intpxs>(intRadius, intRadius, intBounds.w() - intRadius - intRadius, in draw() [all …]
|
D | font_rendering.cpp | 107 optional<Box<pxs>> TextFace::getGlyphBBox() const { in getGlyphBBox() 130 std::tuple<Error, Box<pxs>, UTF8Range<const char*>> 132 const Box<pxs>& boundingBox) { in findLongestWordSequence() 133 std::tuple<Error, Box<pxs>, UTF8Range<const char*>> result; in findLongestWordSequence() 150 Box<pxs> currentBox = bBox; in findLongestWordSequence() 151 Box<pxs> currentFullWordBox = bBox; in findLongestWordSequence() 159 Box<pxs> workingBox = currentBox; in findLongestWordSequence()
|
D | label.cpp | 25 Error LabelImpl::draw(const PixelDrawer& drawPixel, const Box<pxs>& bounds, LineInfo* lineInfo) { in draw() 41 Box<intpxs> intBounds(intpxs((int64_t)bounds.x().count()), intpxs((int64_t)bounds.y().count()), in draw() 55 auto drawBox = [&](const Box<pxs>& box, Color c) { in draw() 68 optional<Box<pxs>> boundingBox; in draw() 73 Box<pxs> bBox; in draw() 139 Error LabelImpl::hit(const Event& event, const Box<pxs>& bounds) { in hit()
|
/system/bt/gd/rust/shim/src/ |
D | stack.rs | 37 pub fn stack_create() -> Box<Stack> { in stack_create() 45 Box::new(Stack(stack)) in stack_create() 59 pub fn get_hci(stack: &mut Stack) -> Box<Hci> { in get_hci() 63 Box::new(Hci::new( in get_hci() 69 pub fn get_controller(stack: &mut Stack) -> Box<Controller> { in get_controller() 73 Box::new(Controller(stack.get_blocking::<Arc<ControllerExports>>())) in get_controller()
|
D | message_loop_thread.rs | 22 fn main_message_loop_thread_create() -> Box<MessageLoopThread>; in main_message_loop_thread_create() 39 pub fn main_message_loop_thread_create() -> Box<MessageLoopThread> { in main_message_loop_thread_create() 50 Box::new(MessageLoopThread { rt, tx }) in main_message_loop_thread_create()
|
D | bridge.rs | 15 fn stack_create() -> Box<Stack>; in stack_create() 19 fn get_hci(stack: &mut Stack) -> Box<Hci>; in get_hci() 20 fn get_controller(stack: &mut Stack) -> Box<Controller>; in get_controller()
|
/system/bt/main/shim/ |
D | stack.h | 62 ::rust::Box<rust::Hci>* GetRustHci() { return rust_hci_; } in GetRustHci() 63 ::rust::Box<rust::Controller>* GetRustController() { in GetRustController() 77 ::rust::Box<rust::Stack>* rust_stack_ = nullptr; 78 ::rust::Box<rust::Hci>* rust_hci_ = nullptr; 79 ::rust::Box<rust::Controller>* rust_controller_ = nullptr;
|
/system/bt/gd/rust/gddi/src/ |
D | lib.rs | 12 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>>>>, 95 instances.insert(typeid, Box::new(casted.clone())); in get() 98 start_order.push(Box::new(casted.clone())); in get() 106 instances.insert(TypeId::of::<T>(), Box::new(obj)); in inject()
|
/system/bt/gd/rust/linux/stack/btif_macros/src/ |
D | lib.rs | 97 let #method_ident = Box::new(move |#arg_names| { in btif_callbacks_generator() 121 acl_state_changed: Box::new(|_, _, _, _| {}), in btif_callbacks_generator() 122 bond_state_changed: Box::new(|_, _, _| {}), in btif_callbacks_generator() 123 device_found: Box::new(|_, _| {}), in btif_callbacks_generator() 124 discovery_state_changed: Box::new(|_| {}), in btif_callbacks_generator() 125 pin_request: Box::new(|_, _, _, _| {}), in btif_callbacks_generator() 126 remote_device_properties_changed: Box::new(|_, _, _, _| {}), in btif_callbacks_generator() 127 ssp_request: Box::new(|_, _, _, _, _| {}), in btif_callbacks_generator()
|
/system/bt/gd/rust/linux/dbus_projection/src/ |
D | lib.rs | 15 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() 43 Box::new(move |msg, _conn| { in setup_watch() 86 ) -> Result<$enum_type, Box<dyn Error>> { 89 None => Err(Box::new(DBusArgError::new(String::from(format!( 97 fn to_dbus(data: $enum_type) -> Result<i32, Box<dyn Error>> {
|
/system/bt/gd/rust/linux/adapter/src/ |
D | main.rs | 36 adapter_state_changed: Box::new(move |state| { in make_context() 42 adapter_properties_changed: Box::new(move |status, count, props| { in make_context() 48 remote_device_properties_changed: Box::new(move |status, address, count, props| { in make_context() 54 device_found: Box::new(move |count, props| { in make_context() 60 discovery_state_changed: Box::new(move |state| { in make_context() 66 pin_request: Box::new(move |_address, _bdname, _cod, _min_16_digit| { in make_context() 69 ssp_request: Box::new(move |_address, _bdname, _cod, _variant, _passkey| { in make_context() 72 bond_state_changed: Box::new(move |_status, _address, _state| { in make_context() 75 acl_state_changed: Box::new(move |_status, _address, _state, _hci_reason| { in make_context()
|
/system/bt/gd/rust/topshim/src/ |
D | btif.rs | 110 callbacks: Box<RustCallbacks>, in Initialize() 241 unsafe impl Box<RustCallbacks> {} implementation 250 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>, [all …]
|
/system/bt/gd/rust/linux/dbus_projection/dbus_macros/src/ |
D | lib.rs | 295 return Err(Box::new(DBusArgError::new(String::from(format!( in dbus_propmap() 304 return Err(Box::new(DBusArgError::new(String::from(format!( in dbus_propmap() 328 return Err(Box::new(DBusArgError::new(String::from(format!( in dbus_propmap() 340 map.insert(String::from(#field_str), dbus::arg::Variant(Box::new(field_data))); in dbus_propmap() 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() [all …]
|
/system/bt/gd/rust/gddi/macros/ |
D | lib.rs | 35 Box::pin(async move { in provides() 41 Box::new(#ident(#(#local_var_idents_for_call),*).await) as Box<dyn std::any::Any> in provides() 155 let ret = builder#(.register_provider::<#types>(Box::new(#provider_idents)))* in module() 198 builder#(.register_provider::<#field_types>(Box::new( in part_out() 200 Box::pin(async move { in part_out() 201 Box::new(async move { in part_out() 203 }.await) as Box<dyn std::any::Any> in part_out()
|
/system/bt/gd/rust/topshim/btif/ |
D | btif_shim.h | 40 bool Initialize(::rust::Box<RustCallbacks> callbacks, ::rust::Vec<::rust::String> initFlags); 68 ::rust::Box<RustCallbacks>& GetCallbacks() { in GetCallbacks() 75 std::unique_ptr<::rust::Box<RustCallbacks>> callbacks_;
|
/system/security/keystore2/src/ |
D | async_task.rs | 39 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>>, 175 state.hi_prio_req.push_back(Box::new(f)); in queue() 177 state.lo_prio_req.push_back(Box::new(f)); in queue() 199 QueuedFn(Box<dyn FnOnce(&mut Shelf) + Send>), in spawn_thread()
|
D | gc.rs | 48 Box<dyn Fn(&Uuid, &[u8]) -> Result<()> + Send + 'static>, in new_init_with() 87 invalidate_key: Box<dyn Fn(&Uuid, &[u8]) -> Result<()> + Send + 'static>,
|
D | watchdog.rs | 61 callback: Option<Box<dyn Fn() -> String + Send + 'static>>, 189 callback: Option<Box<dyn Fn() -> String + Send + 'static>>, in watch_with_optional() 212 Self::watch_with_optional(wd, Some(Box::new(callback)), id, timeout) in watch_with() 222 callback: Option<Box<dyn Fn() -> String + Send + 'static>>, in arm()
|
/system/bt/gd/rust/linux/stack/src/ |
D | bluetooth.rs | 24 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() 168 callback.register_disconnect(Box::new(move || { in register_callback()
|
D | bluetooth_gatt.rs | 9 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()
|
/system/bt/gd/rust/linux/service/src/ |
D | main.rs | 32 fn main() -> Result<(), Box<dyn Error>> { in main() 57 Box::new(|x| { in main() 90 Box::new(move |msg, conn| { in main()
|
/system/bt/gd/rust/linux/mgmt/src/bin/btmanagerd/ |
D | main.rs | 9 pub async fn main() -> Result<(), Box<dyn std::error::Error>> { in main() 34 Box::new(|x| { in main() 134 Box::new(move |msg, conn| { in main()
|
/system/teeui/libteeui/include/teeui/ |
D | utils.h | 736 template <typename Coord> class Box { 741 Box() {} 743 Box(const Box<Coordinate<typename Coord::unit_t, N>>& other) 745 Box(const Coord& x, const Coord& y, const Coord& w, const Coord& h) 747 Box(const Point<Coord>& topLeft, const Vec2d<Coord>& extend) 754 bool contains(const Box& other) const { 760 bool overlaps(const Box& other) const { 771 bool fitsInside(const Box& other) const { return w() <= other.w() && h() <= other.w(); } 780 Box merge(const Box& other) const { 793 Box merge(const Point<Coord>& p) const { [all …]
|
/system/bt/gd/rust/hci/src/ |
D | error.rs | 10 pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;
|