/aosp12/system/teeui/libteeui/src/ |
H A 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() 125 auto centerbox = Box<intpxs>(intRadius, intRadius, intBounds.w() - intRadius - intRadius, in draw() 132 drawBox(Box<intpxs>(0, intRadius, intRadius, intBounds.h() - intRadius - intRadius) in draw() 143 if (auto error = drawBox(Box<intpxs>(intBounds.w() - intRadius, intRadius, intRadius, in draw() 149 if (auto error = drawBox(Box<intpxs>(intRadius, intBounds.h() - intRadius, in draw() 158 Box<pxs> coBBox = Box<pxs>::boundingBox(coBegin->begin, coBegin->end); in draw() [all …]
|
H A 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()
|
H A 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()
|
/aosp12/system/security/keystore2/apc_compat/ |
H A 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()
|
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
H A D | IsoInterface.java | 97 private static class Box { class in IsoInterface 102 public List<Box> children; 105 public Box(int type, long[] range) { in Box() method in IsoInterface.Box 164 final Box box = new Box(type, new long[] { pos, len }); in parseNextBox() 224 Box child; in parseNextBox() 254 Box box; in IsoInterface() 265 final Box box = queue.poll(); in IsoInterface() 293 for (Box box : mFlattened) { in getBoxRanges() 304 for (Box box : mFlattened) { in getBoxRanges() 317 for (Box box : mFlattened) { in getBoxBytes() [all …]
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | PositionController.java | 171 private RangeArray<Box> mBoxes = new RangeArray<Box>(-BOX_MAX, BOX_MAX); 178 private RangeArray<Box> mTempBoxes = new RangeArray<Box>(-BOX_MAX, BOX_MAX); 296 Box b = mBoxes.get(i); in setBoxSize() 344 Box b = mBoxes.get(0); in startOpeningAnimationIfNeeded() 407 Box a = mBoxes.get(i); in getDefaultGapSize() 478 Box b = mBoxes.get(0); in zoomIn() 496 Box b = mBoxes.get(0); in resetToFullView() 503 Box b = mBoxes.get(0); in beginScale() 518 Box b = mBoxes.get(0); in scaleBy() 542 Box b = mBoxes.get(0); in startHorizontalSlide() [all …]
|
/aosp12/system/bt/gd/rust/linux/stack/btif_macros/src/ |
H A 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()
|
/aosp12/system/bt/gd/rust/gddi/src/ |
H A 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()
|
/aosp12/system/bt/gd/rust/shim/src/ |
H A 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()
|
H A 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()
|
/aosp12/system/bt/main/shim/ |
H A 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;
|
/aosp12/system/bt/gd/rust/linux/dbus_projection/dbus_macros/src/ |
H A D | lib.rs | 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() 356 ) -> Result<#struct_ident, Box<dyn Error>> { in dbus_propmap() 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() 582 ) -> Result<T, Box<dyn Error>> { in generate_dbus_arg() 586 fn to_dbus(data: T) -> Result<T, Box<dyn Error>> { in generate_dbus_arg() [all …]
|
/aosp12/system/bt/gd/rust/topshim/src/ |
H A 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 …]
|
/aosp12/system/bt/gd/rust/linux/adapter/src/ |
H A 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()
|
/aosp12/system/bt/gd/rust/linux/dbus_projection/src/ |
H A 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>> {
|
/aosp12/system/bt/gd/rust/gddi/macros/ |
H A 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()
|
/aosp12/system/security/keystore2/src/ |
H A 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()
|
/aosp12/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | WuQuantizer.java | 59 private Box[] mCubes; 182 mCubes = new Box[maxColorCount]; in createBoxes() 184 mCubes[i] = new Box(); in createBoxes() 187 Box firstBox = mCubes[0]; in createBoxes() 226 Box cube = mCubes[i]; in createResult() 241 private double variance(Box cube) { in variance() 261 private boolean cut(Box one, Box two) { in cut() 322 Box cube, in maximize() 369 private static int volume(Box cube, int[] moment) { in volume() 380 private static int bottom(Box cube, Direction direction, int[] moment) { in bottom() [all …]
|
/aosp12/system/bt/gd/rust/topshim/btif/ |
H A 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_;
|
/aosp12/system/bt/gd/rust/linux/stack/src/ |
H A 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()
|
/aosp12/system/teeui/libteeui/include/teeui/ |
H A D | utils.h | 736 template <typename Coord> class Box { 741 Box() {} 743 Box(const Box<Coordinate<typename Coord::unit_t, N>>& other) 754 bool contains(const Box& other) const { 760 bool overlaps(const Box& other) const { 780 Box merge(const Box& other) const { 793 Box merge(const Point<Coord>& p) const { 825 Box result(*begin, {0, 0}); 841 Box result = *this; 848 Box translate(const Point<Coord>& offset) && { [all …]
|
/aosp12/frameworks/av/media/extractors/mp4/ |
H A D | ItemTable.cpp | 99 struct Box { struct 101 Box(DataSourceHelper *source, uint32_t type) : in Box() function 104 virtual ~Box() {} in ~Box() argument 124 status_t Box::parseChunk(off64_t *offset) { in parseChunk() 193 struct FullBox : public Box { 743 Box(source, FOURCC("hvcC")) {} in HvccBox() 776 Box(source, FOURCC("av1C")) {} in Av1cBox() 838 Box(source, FOURCC("colr")) {} in ColrBox() 958 struct IpcoBox : public Box { 1020 struct IprpBox : public Box { [all …]
|
/aosp12/system/bt/gd/rust/linux/service/src/ |
H A 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()
|
/aosp12/frameworks/native/libs/binder/rust/src/ |
H A D | binder.rs | 264 pub struct Strong<I: FromIBinder + ?Sized>(Box<I>); 268 pub fn new(binder: Box<I>) -> Self { in new() 751 pub struct $native(Box<dyn $interface + Sync + Send + 'static>); 756 … let mut binder = $crate::Binder::new_with_stability($native(Box::new(inner)), $stability); 758 $crate::Strong::new(Box::new(binder)) 813 … return Ok($crate::Strong::new(Box::new(<$proxy as $crate::Proxy>::from_binder(ibinder)?))); 823 return Ok($crate::Strong::new(Box::new(service))); 826 … return Ok($crate::Strong::new(Box::new(<$proxy as $crate::Proxy>::from_binder(ibinder)?)));
|
/aosp12/system/bt/gd/rust/linux/mgmt/src/bin/btmanagerd/ |
H A 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()
|