Home
last modified time | relevance | path

Searched refs:borrow (Results 1 – 19 of 19) sorted by relevance

/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/test/
Dsequence.rs31 …assert!($ctx.0.in_lmp_packets.borrow().is_empty(), "{} was not consumed by procedure", stringify!(…
51 …assert!($ctx.0.hci_commands.borrow().is_empty(), "{} was not consumed by procedure", stringify!($p…
132 assert!($context.in_lmp_packets.borrow().is_empty());
133 assert!($context.out_lmp_packets.borrow().is_empty());
134 assert!($context.hci_commands.borrow().is_empty());
135 assert!($context.hci_events.borrow().is_empty());
Dcontext.rs69 self.hci_commands.borrow().front().and_then(|command| command.clone().try_into().ok()); in poll_hci_command()
81 self.in_lmp_packets.borrow().front().and_then(|packet| packet.clone().try_into().ok()); in poll_lmp_packet()
116 self.private_key.borrow().clone() in get_private_key()
/packages/modules/Bluetooth/system/rust/src/connection/mocks/
Dmock_le_manager.rs31 self.active.borrow().as_ref().unwrap().clone() in inner()
49 .borrow() in on_le_connect()
54 self.callbacks.borrow().as_deref().unwrap().on_le_connect(address, Err(status)); in on_le_connect()
63 self.callbacks.borrow().as_deref().unwrap().on_disconnect(address); in on_le_disconnect()
105 let state = self.state.borrow(); in current_acceptlist()
111 let state = self.state.borrow(); in current_connection_mode()
/packages/modules/Bluetooth/system/stack/smp/
Dp_256_multprecision.cc95 uint32_t borrow; in multiprecision_sub() local
98 borrow = 0; in multiprecision_sub()
100 temp = a[i] - borrow; in multiprecision_sub()
101 borrow = (temp > a[i]); in multiprecision_sub()
103 borrow |= (c[i] > temp); in multiprecision_sub()
106 return borrow; in multiprecision_sub()
167 uint32_t borrow; in multiprecision_sub_mod() local
170 borrow = multiprecision_sub(c, a, b); in multiprecision_sub_mod()
171 if (borrow) multiprecision_add(c, c, modp); in multiprecision_sub_mod()
/packages/modules/Bluetooth/system/gd/security/ecc/
Dmultprecision.cc100 uint32_t borrow; in multiprecision_sub() local
103 borrow = 0; in multiprecision_sub()
105 temp = a[i] - borrow; in multiprecision_sub()
106 borrow = (temp > a[i]); in multiprecision_sub()
108 borrow |= (c[i] > temp); in multiprecision_sub()
111 return borrow; in multiprecision_sub()
166 uint32_t borrow; in multiprecision_sub_mod() local
168 borrow = multiprecision_sub(c, a, b); in multiprecision_sub_mod()
169 if (borrow) multiprecision_add(c, c, modp); in multiprecision_sub_mod()
/packages/modules/DnsResolver/doh/connection/
Dmod.rs187 match &*self.status_rx.borrow() { in wait_for_live()
196 if matches!(*self.status_rx.borrow(), Status::H3) { in wait_for_live()
204 _ => matches!(*self.status_rx.borrow(), Status::H3), in wait_for_live()
209 match &*self.status_rx.borrow() { in session()
/packages/modules/Virtualization/authfs/src/fsverity/
Deditor.rs318 if end > self.data.borrow().len() { in write_at()
339 let borrowed = self.data.borrow(); in read_chunk()
358 assert_eq!(writer.data.borrow().len(), 0); in test_writer()
361 assert_eq!(writer.data.borrow()[16384..16384 + 4096], buf); in test_writer()
364 assert_eq!(writer.data.borrow()[2048..2048 + 4096], buf); in test_writer()
366 assert_eq!(writer.data.borrow().len(), 16384 + 4096); in test_writer()
/packages/modules/DnsResolver/doh/network/
Ddriver.rs125 if self.status_tx.borrow().is_failed() { in probe()
139 if self.status_tx.borrow().is_live() { in probe()
175 let valid = self.status_tx.borrow().is_live(); in force_probe()
Dmod.rs95 let status: Status = self.status_rx.borrow().clone(); in query()
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Dgatt_database.rs150 for listener in self.listeners.borrow().iter() { in on_bearer_ready()
157 for listener in self.listeners.borrow().iter() { in on_bearer_dropped()
281 for listener in self.listeners.borrow().iter() { in add_service_with_handles()
322 for listener in self.listeners.borrow().iter() { in remove_service_at_handle()
356 let services = gatt_db.schema.borrow(); in read_attribute()
397 let services = gatt_db.schema.borrow(); in write_attribute()
443 let services = gatt_db.schema.borrow(); in write_no_response_attribute()
484 db.map(|db| db.schema.borrow().attributes.values().map(|attr| attr.attribute).collect()) in list_attributes()
506 for listener in db.listeners.borrow().iter() { in on_bearer_dropped()
/packages/modules/Virtualization/libs/avflog/src/
Dlib.rs69 assert_eq!(TEST_LOGGER.last_log.borrow().as_str(), "Kind(NotFound)"); in test_logresult_emits_error_log()
/packages/modules/Bluetooth/system/rust/src/gatt/server/test/
Dtest_att_db.rs49 Some(TestAttributeWithData { data, .. }) => Ok(data.borrow().clone()), in read_attribute()
/packages/modules/Bluetooth/system/rust/src/gatt/server/services/
Dgatt.rs69 .borrow() in read()
127 for (conn_id, client) in self.clients.borrow().clone() { in on_service_change()
/packages/modules/Virtualization/pvmfw/src/
Dmain.rs43 use alloc::borrow::Cow;
/packages/modules/Virtualization/microdroid_manager/src/
Dmain.rs54 use std::borrow::Cow::{Borrowed, Owned};
/packages/modules/Virtualization/virtualizationmanager/src/
Dcrosvm.rs31 use std::borrow::Cow;
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz