/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | IsoInterface.java | 94 private List<Box> mRoots = new ArrayList<>(); 96 private List<Box> mFlattened = new ArrayList<>(); 98 private static class Box { class in IsoInterface 103 public List<Box> children; 106 public Box(int type, long[] range) { in Box() method in IsoInterface.Box 136 private static @Nullable Box parseNextBox(@NonNull FileDescriptor fd, long end, int parentType, in parseNextBox() 165 final Box box = new Box(type, new long[] { pos, len }); in parseNextBox() 228 Box child; in parseNextBox() 258 Box box; in IsoInterface() 270 final Queue<Box> queue = new ArrayDeque<>(mRoots); in IsoInterface() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
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); 219 mBoxes.put(i, new Box()); in PositionController() 251 Box b = mBoxes.get(0); in setViewSize() 272 Box b = mBoxes.get(index); in forceImageSize() 296 Box b = mBoxes.get(i); in setBoxSize() 344 Box b = mBoxes.get(0); in startOpeningAnimationIfNeeded() 392 Box b = mBoxes.get(i); in updateScaleAndGapLimit() 407 Box a = mBoxes.get(i); in getDefaultGapSize() 408 Box b = mBoxes.get(i + 1); in getDefaultGapSize() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/ |
D | interface_manager.rs | 59 bluetooth: Arc<Mutex<Box<Bluetooth>>>, in dispatch() 60 bluetooth_admin: Arc<Mutex<Box<BluetoothAdmin>>>, in dispatch() 61 bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>, in dispatch() 62 battery_service: Arc<Mutex<Box<BatteryService>>>, in dispatch() 63 battery_manager: Arc<Mutex<Box<BatteryManager>>>, in dispatch() 64 battery_provider_manager: Arc<Mutex<Box<BatteryProviderManager>>>, in dispatch() 65 bluetooth_media: Arc<Mutex<Box<BluetoothMedia>>>, in dispatch() 66 bluetooth_qa: Arc<Mutex<Box<BluetoothQA>>>, in dispatch() 67 bt_sock_mgr: Arc<Mutex<Box<BluetoothSocketManager>>>, in dispatch() 68 suspend: Arc<Mutex<Box<Suspend>>>, in dispatch() [all …]
|
D | main.rs | 56 fn main() -> Result<(), Box<dyn Error>> { in main() 108 let logging = Arc::new(Mutex::new(Box::new(BluetoothLogging::new( in main() 136 Arc::new(Mutex::new(Box::new(BluetoothGatt::new(intf.clone(), tx.clone())))); in main() 138 Arc::new(Mutex::new(Box::new(BatteryProviderManager::new(tx.clone())))); in main() 139 let battery_service = Arc::new(Mutex::new(Box::new(BatteryService::new( in main() 145 let battery_manager = Arc::new(Mutex::new(Box::new(BatteryManager::new( in main() 149 let bluetooth_media = Arc::new(Mutex::new(Box::new(BluetoothMedia::new( in main() 154 let bluetooth_admin = Arc::new(Mutex::new(Box::new(BluetoothAdmin::new( in main() 158 let bluetooth = Arc::new(Mutex::new(Box::new(Bluetooth::new( in main() 169 let suspend = Arc::new(Mutex::new(Box::new(Suspend::new( in main() [all …]
|
D | iface_bluetooth.rs | 52 ) -> Result<Uuid, Box<dyn std::error::Error>> { in from_dbus() 61 fn to_dbus(data: Uuid) -> Result<Vec<u8>, Box<dyn std::error::Error>> { in to_dbus() 76 pub adapter: Arc<Mutex<Box<Bluetooth>>>, 77 pub qa: Arc<Mutex<Box<Bluetooth>>>, 78 pub suspend: Arc<Mutex<Box<Suspend>>>, 79 pub socket_mgr: Arc<Mutex<Box<BluetoothSocketManager>>>, 295 ) -> Result<T, Box<dyn std::error::Error>> { in read_propmap_value() 298 .ok_or(Box::new(DBusArgError::new(format!("Key {} does not exist", key,))))?; in read_propmap_value() 300 output.as_static_inner(0).ok_or(Box::new(DBusArgError::new(format!( in read_propmap_value() 313 ) -> Result<T, Box<dyn std::error::Error>> in parse_propmap_value() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | callbacks.rs | 10 callbacks: HashMap<u32, Box<T>>, 38 pub fn add_callback(&mut self, mut callback: Box<T>) -> u32 { in add_callback() 45 let id = callback.register_disconnect(Box::new(move |cb_id| { in add_callback() 78 pub fn get_by_id(&self, id: u32) -> Option<&Box<T>> { in get_by_id() 83 pub fn get_by_id_mut(&mut self, id: u32) -> Option<&mut Box<T>> { in get_by_id_mut() 88 pub fn for_all_callbacks<F: Fn(&mut Box<T>)>(&mut self, f: F) { in for_all_callbacks() 115 fn register_disconnect(&mut self, _f: Box<dyn Fn(u32) + Send>) -> u32 { in register_disconnect() 130 let cbid = callbacks.add_callback(Box::new(TestCallback::new(cb_string.clone()))); in test_add_and_remove() 142 let cbid1 = callbacks.add_callback(Box::new(TestCallback::new(cb_string.clone()))); in test_add_and_remove() 152 let cbid2 = callbacks.add_callback(Box::new(TestCallback::new(cb_string.clone()))); in test_add_and_remove()
|
D | bluetooth_qa.rs | 12 fn register_qa_callback(&mut self, callback: Box<dyn IBluetoothQACallback + Send>) -> u32; in register_qa_callback() 78 self.callbacks.for_all_callbacks(|cb: &mut Box<dyn IBluetoothQACallback + Send>| { in on_set_connectable_completed() 83 self.callbacks.for_all_callbacks(|cb: &mut Box<dyn IBluetoothQACallback + Send>| { in on_fetch_alias_completed() 88 self.callbacks.for_all_callbacks(|cb: &mut Box<dyn IBluetoothQACallback + Send>| { in on_get_hid_report_completed() 93 self.callbacks.for_all_callbacks(|cb: &mut Box<dyn IBluetoothQACallback + Send>| { in on_set_hid_report_completed() 98 self.callbacks.for_all_callbacks(|cb: &mut Box<dyn IBluetoothQACallback + Send>| { in on_send_hid_data_completed() 105 fn register_qa_callback(&mut self, callback: Box<dyn IBluetoothQACallback + Send>) -> u32 { in register_qa_callback()
|
D | lib.rs | 214 bluetooth: Arc<Mutex<Box<Bluetooth>>>, in dispatch() 215 bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>, in dispatch() 216 battery_service: Arc<Mutex<Box<BatteryService>>>, in dispatch() 217 battery_manager: Arc<Mutex<Box<BatteryManager>>>, in dispatch() 218 battery_provider_manager: Arc<Mutex<Box<BatteryProviderManager>>>, in dispatch() 219 bluetooth_media: Arc<Mutex<Box<BluetoothMedia>>>, in dispatch() 220 suspend: Arc<Mutex<Box<Suspend>>>, in dispatch() 221 bluetooth_socketmgr: Arc<Mutex<Box<BluetoothSocketManager>>>, in dispatch() 222 bluetooth_admin: Arc<Mutex<Box<BluetoothAdmin>>>, in dispatch() 223 bluetooth_dis: Arc<Mutex<Box<DeviceInformation>>>, in dispatch() [all …]
|
D | suspend.rs | 26 fn register_callback(&mut self, callback: Box<dyn ISuspendCallback + Send>) -> bool; in register_callback() 130 bt: Arc<Mutex<Box<Bluetooth>>>, 132 gatt: Arc<Mutex<Box<BluetoothGatt>>>, 133 media: Arc<Mutex<Box<BluetoothMedia>>>, 150 bt: Arc<Mutex<Box<Bluetooth>>>, in new() 152 gatt: Arc<Mutex<Box<BluetoothGatt>>>, in new() 153 media: Arc<Mutex<Box<BluetoothMedia>>>, in new() 209 fn register_callback(&mut self, callback: Box<dyn ISuspendCallback + Send>) -> bool { in register_callback()
|
D | battery_manager.rs | 50 battery_manager_callback: Box<dyn IBatteryManagerCallback + Send>, in register_battery_callback() 62 battery_provider_manager: Arc<Mutex<Box<BatteryProviderManager>>>, 69 battery_provider_manager: Arc<Mutex<Box<BatteryProviderManager>>>, in new() 92 battery_manager_callback: Box<dyn IBatteryManagerCallback + Send>, in register_battery_callback()
|
/packages/modules/Bluetooth/system/gd/rust/linux/mgmt/src/ |
D | service_watcher.rs | 103 on_available: Box<dyn Fn() + Send>, in monitor_name_owner_changed() 104 on_unavailable: Box<dyn Fn() + Send>, in monitor_name_owner_changed() 112 Box::new(move |msg, _conn| { in monitor_name_owner_changed() 148 on_available: Box<dyn Fn() + Send>, in start_watch() 149 on_unavailable: Box<dyn Fn() + Send>, in start_watch() 158 Box::new(move || { in start_watch() 161 Box::new(move || { in start_watch() 175 on_available: Box<dyn Fn(dbus::Path<'static>) + Send>, in start_watch_interface() 176 on_unavailable: Box<dyn Fn() + Send>, in start_watch_interface() 187 Box::new(move || { in start_watch_interface() [all …]
|
D | main.rs | 21 pub async fn main() -> Result<(), Box<dyn std::error::Error>> { in main() 54 let _ = log::set_boxed_logger(Box::new(BasicLogger::new(logger))) in main() 98 Box::new(|x| { in main() 110 let bluetooth_manager = Arc::new(Mutex::new(Box::new(BluetoothManager::new(proxy)))); in main() 123 Box::new(move |msg, conn| { in main() 146 let mixin = Box::new(iface_bluetooth_manager::BluetoothManagerMixin { in main()
|
D | powerd_suspend_manager.rs | 172 fn export_for_rpc(self: Box<Self>) { in export_for_rpc() 233 Box::new(move || { in init() 239 Box::new(move || { in init() 256 Box::new(move |path| { in init() 262 Box::new(move || { in init() 280 Box::new(move |path| { in init() 286 Box::new(move || { in init() 304 Box::new(move |msg, _conn| { in init() 337 Box::new(move |msg, _conn| { in init() 557 .register_callback(Box::new(SuspendCallback::new( in on_adapter_found()
|
D | iface_bluetooth_manager.rs | 16 pub manager: Arc<Mutex<Box<BluetoothManager>>>, 17 pub experimental: Arc<Mutex<Box<BluetoothManager>>>, 32 fn register_callback(&mut self, callback: Box<dyn IBluetoothManagerCallback + Send>); in register_callback()
|
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/tests/ |
D | conversions.rs | 46 items: Vec<(String, Box<dyn RefArg>)>, 65 fn box_clone(&self) -> Box<dyn RefArg + 'static> { in box_clone() 66 Box::new(FakeDictionary { in box_clone() 71 fn as_iter<'b>(&'b self) -> Option<Box<dyn Iterator<Item = &'b dyn RefArg> + 'b>> { in as_iter() 72 Some(Box::new( in as_iter() 102 fn wrap_variant<T: 'static + dbus::arg::RefArg>(data: T) -> Box<dyn RefArg> { in wrap_variant() 103 Box::new(dbus::arg::Variant(data)) in wrap_variant() 125 (String::from("key-0"), Box::new(vec![5, 6, 7, 8])), in test_dbus_propmap_success() 126 (String::from("key-1"), Box::new(vec![-5, -6, -7, -8])), in test_dbus_propmap_success() 159 (String::from("key-2"), Box::new(vec![5, 5, 6, 8, 8])), in test_dbus_propmap_success() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/dbus_macros/src/ |
D | lib.rs | 122 None => quote! { std::sync::Arc<std::sync::Mutex<Box<T>>> }, in generate_dbus_exporter() 123 Some(t) => quote! { Box<#t> }, in generate_dbus_exporter() 637 return Err(Box::new(DBusArgError::new(format!( in dbus_propmap() 662 return Err(Box::new(DBusArgError::new(format!( in dbus_propmap() 674 map__.insert(String::from(#field_str), dbus::arg::Variant(Box::new(field_data__))); in dbus_propmap() 709 ) -> Result<#struct_ident, Box<dyn std::error::Error>> { in dbus_propmap() 717 … fn to_dbus(data__: #struct_ident) -> Result<dbus::arg::PropMap, Box<dyn std::error::Error>> { in dbus_propmap() 959 fn register_disconnect(&mut self, disconnect_callback: Box<dyn Fn(u32) + Send>) -> u32 { in dbus_proxy_obj() 972 impl DBusArg for Box<dyn #trait_ + Send> { in dbus_proxy_obj() 980 ) -> Result<Box<dyn #trait_ + Send>, Box<dyn std::error::Error>> { in dbus_proxy_obj() [all …]
|
/packages/modules/Bluetooth/system/rust/src/connection/ |
D | ffi.rs | 64 callbacks: Box<LeAclManagerCallbackShim>, in unchecked_register_rust_callbacks() 98 callbacks: Box<LeAclManagerCallbackShim>, in register_rust_callbacks() 100 Box<LeAclManagerCallbackShim>: Send + Sync, in register_rust_callbacks() 114 UnboundedSender<Box<dyn FnOnce(&dyn LeAclManagerConnectionCallbacks) + Send>>, 119 let _ = self.0.send(Box::new(move |callback| { in on_le_connect_success() 125 let _ = self.0.send(Box::new(move |callback| { in on_le_connect_fail() 131 let _ = self.0.send(Box::new(move |callback| { in on_disconnect() 148 self.0.pin_mut().register_rust_callbacks(Box::new(LeAclManagerCallbackShim(tx))); in register_callbacks()
|
/packages/modules/Virtualization/service_vm/demo_apk/src/ |
D | main.rs | 42 panic::set_hook(Box::new(|panic_info| { in AVmPayload_main() 112 fn certificate_chain(&self) -> Result<Vec<Box<[u8]>>> { in certificate_chain() 121 fn private_key(&self) -> Result<Box<[u8]>> { in private_key() 125 fn sign(&self, message: &[u8]) -> Result<Box<[u8]>> { in sign() 152 fn get_certificate_at(res: &AVmAttestationResult, index: usize) -> Result<Box<[u8]>> { in get_certificate_at() 173 fn get_private_key(res: &AVmAttestationResult) -> Result<Box<[u8]>> { in get_private_key() 193 fn sign_with_attested_key(res: &AVmAttestationResult, message: &[u8]) -> Result<Box<[u8]>> { in sign_with_attested_key()
|
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/ |
D | main.rs | 307 fn run_callback(&mut self, callback: Box<dyn Fn(Arc<Mutex<ClientContext>>) + Send>) { in run_callback() 343 RunCallback(Box<dyn Fn(Arc<Mutex<ClientContext>>) + Send>), // Run callback in foreground 349 fn main() -> Result<(), Box<dyn std::error::Error>> { in main() 386 Box::new(|x| { in main() 393 Box::new(move |msg, conn| { in main() 427 context.lock().unwrap().manager_dbus.register_callback(Box::new(BtManagerCallback::new( in main() 495 ) -> Result<(), Box<dyn std::error::Error>> { in handle_client_command() 590 .register_callback(Box::new(BtCallback::new( in handle_client_command() 605 .register_connection_callback(Box::new(BtConnectionCallback::new( in handle_client_command() 622 .register_scanner_callback(Box::new(ScannerCallback::new( in handle_client_command() [all …]
|
D | dbus_iface.rs | 207 ) -> Result<T, Box<dyn std::error::Error>> { in read_propmap_value() 210 .ok_or(Box::new(DBusArgError::new(format!("Key {} does not exist", key,))))?; in read_propmap_value() 212 output.as_static_inner(0).ok_or(Box::new(DBusArgError::new(format!( in read_propmap_value() 225 ) -> Result<T, Box<dyn std::error::Error>> in parse_propmap_value() 231 .ok_or(Box::new(DBusArgError::new(format!("Key {} does not exist", key,))))?; in parse_propmap_value() 233 output.as_static_inner(0).ok_or(Box::new(DBusArgError::new(format!( in parse_propmap_value() 248 ) -> Result<(), Box<dyn std::error::Error>> in write_propmap_value() 252 propmap.insert(String::from(key), dbus::arg::Variant(Box::new(DBusArg::to_dbus(value)?))); in write_propmap_value() 265 ) -> Result<BtSdpRecord, Box<dyn std::error::Error>> { in from_dbus() 309 fn to_dbus(record: BtSdpRecord) -> Result<dbus::arg::PropMap, Box<dyn std::error::Error>> { in to_dbus() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/src/ |
D | lib.rs | 73 callbacks: Arc<Mutex<HashMap<BusName<'static>, HashMap<u32, Box<dyn Fn(u32) + Send>>>>>, 91 pub fn add(&mut self, address: BusName<'static>, callback: Box<dyn Fn(u32) + Send>) -> u32 { in add() 110 Box::new(move |msg, _conn| { in setup_watch() 266 ) -> Result<$enum_type, Box<dyn std::error::Error>> { 269 None => Err(Box::new(DBusArgError::new(format!( 277 fn to_dbus(data: $enum_type) -> Result<u32, Box<dyn std::error::Error>> { 301 ) -> Result<$rust_type, Box<dyn std::error::Error>> { 303 Err(e) => Err(Box::new(DBusArgError::new(format!( 312 fn to_dbus(data: $rust_type) -> Result<$dbus_type, Box<dyn std::error::Error>> { 314 Err(e) => Err(Box::new(DBusArgError::new(format!(
|
/packages/modules/Virtualization/libs/apkverify/src/ |
D | v4.rs | 42 ) -> Result<(SignatureAlgorithmID, Box<[u8]>)> { in get_apk_digest() 85 pub salt: Box<[u8]>, 87 pub raw_root_hash: Box<[u8]>, 94 pub apk_digest: Box<[u8]>, 96 pub x509_certificate: Box<[u8]>, 98 pub additional_data: Box<[u8]>, 100 pub public_key: Box<[u8]>, 104 pub signature: Box<[u8]>, 294 fn read_sized_array(r: &mut dyn Read) -> Result<Box<[u8]>> { in read_sized_array()
|
D | sigutil.rs | 110 fn zip_entries(&mut self) -> Result<Take<Box<dyn Read + '_>>> { in zip_entries() 114 fn central_directory(&mut self) -> Result<Take<Box<dyn Read + '_>>> { in central_directory() 122 fn eocd_for_verification(&mut self) -> Result<Take<Box<dyn Read + '_>>> { in eocd_for_verification() 131 Ok(Read::take(Box::new(Cursor::new(eocd)), self.eocd_size as u64)) in eocd_for_verification() 146 ) -> Result<Take<Box<dyn Read + 'a>>> { in scoped_read() 148 Ok(Read::take(Box::new(src), size)) in scoped_read()
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/components/mediagrid/ |
D | MediaGrid.kt | 34 import androidx.compose.foundation.layout.Box in <lambda>() 285 Box( in defaultBuildMediaItem() 316 Box { in defaultBuildMediaItem() 319 Box( in defaultBuildMediaItem() 367 Box( in defaultBuildMediaItem() 440 Box( in defaultBuildAlbumItem() 499 Box { in defaultBuildAlbumItem() 520 Box(Modifier.padding(MEASUREMENT_SEPARATOR_PADDING).semantics(mergeDescendants = true) {}) { in defaultBuildSeparator() 533 Box( in DefaultAlbumIcon()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/ui/composable/ |
D | ShareouselCardComposable.kt | 20 import androidx.compose.foundation.layout.Box 45 Box(modifier) { in ShareouselCard() 48 Box(modifier = Modifier.padding(topButtonPadding).matchParentSize()) { in ShareouselCard() 98 Box( in SelectionIcon()
|