/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | Matrix.java | 25 public final double[] mem; field in Matrix 36 mem = new double[rows * cols]; in Matrix() 51 mem = values; in Matrix() 52 if (mem.length != n * m) throw new IllegalArgumentException(); in Matrix() 63 mem = new double[that.mem.length]; in Matrix() 64 for (int i = 0; i < mem.length; i++) { in Matrix() 65 mem[i] = that.mem[i]; in Matrix() 79 return mem[i * m + j]; in get() 92 mem[i * m + j] = v; in put() 119 for (int i = 0; i < mem.length; i++) { in plus() [all …]
|
/packages/modules/adb/crypto/ |
D | key.cpp | 36 BUF_MEM* mem = nullptr; in ToPEMString() local 37 BIO_get_mem_ptr(bio.get(), &mem); in ToPEMString() 38 if (!mem || !mem->data || !mem->length) { in ToPEMString() 43 return std::string(mem->data, mem->length); in ToPEMString()
|
D | x509_generator.cpp | 114 BUF_MEM* mem = nullptr; in X509ToPEMString() local 115 BIO_get_mem_ptr(bio.get(), &mem); in X509ToPEMString() 116 if (!mem || !mem->data || !mem->length) { in X509ToPEMString() 121 return std::string(mem->data, mem->length); in X509ToPEMString()
|
/packages/modules/Bluetooth/system/stack/mmc/test/mock/ |
D | mock_embdrv_lc3.h | 144 void* mem)> 145 body{[](int dt_us, int sr_hz, int sr_pcm_hz, void* mem) { 149 void* mem) { in operator() 150 return body(dt_us, sr_hz, sr_pcm_hz, mem); in operator() 161 void* mem)> 162 body{[](int dt_us, int sr_hz, int sr_pcm_hz, void* mem) { 166 void* mem) { in operator() 167 return body(dt_us, sr_hz, sr_pcm_hz, mem); in operator()
|
D | mock_embdrv_lc3.cc | 113 void* mem) { in lc3_setup_decoder() argument 116 mem); in lc3_setup_decoder() 119 void* mem) { in lc3_setup_encoder() argument 122 mem); in lc3_setup_encoder()
|
/packages/modules/Virtualization/pvmfw/src/ |
D | config.rs | 18 use core::mem; 94 let entries_offset = mem::size_of::<Self>(); in body_lowest_bound() 97 const_assert_eq!(mem::align_of::<Header>() % mem::align_of::<HeaderEntry>(), 0); in body_lowest_bound() 98 const_assert_eq!(mem::size_of::<Header>() % mem::align_of::<HeaderEntry>(), 0); in body_lowest_bound() 100 let entries_size = self.entry_count()?.checked_mul(mem::size_of::<HeaderEntry>()).unwrap(); in body_lowest_bound() 206 const HEADER_SIZE: usize = mem::size_of::<Header>(); in new() 227 const_assert_eq!(HEADER_SIZE % mem::size_of::<u64>(), 0); in new() 243 const_assert_eq!(mem::size_of::<HeaderEntry>() % mem::size_of::<u64>(), 0); in new()
|
/packages/modules/Bluetooth/floss/hcidoc/src/ |
D | parser.rs | 43 let (version_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from() 44 let (data_type_bytes, _rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from() 155 let (orig_len_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from() 156 let (included_len_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from() 157 let (flags_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from() 158 let (drops_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from() 159 let (ts_bytes, _rest) = rest.split_at(std::mem::size_of::<u64>()); in try_from() 426 if data.len() != std::mem::size_of::<NewIndex>() { in parse() 431 let (hci_type, rest) = rest.split_at(std::mem::size_of::<u8>()); in parse() 432 let (bus, rest) = rest.split_at(std::mem::size_of::<u8>()); in parse() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/ |
D | btif.rs | 14 use std::mem; 642 BluetoothProperty::Uuids(uulist) => uulist.len() * mem::size_of::<Uuid>(), in get_len() 643 BluetoothProperty::ClassOfDevice(_) => mem::size_of::<u32>(), in get_len() 644 BluetoothProperty::TypeOfDevice(_) => mem::size_of::<BtDeviceType>(), in get_len() 646 mem::size_of::<BtServiceRecord>() + cmp::min(PROPERTY_NAME_MAX, rec.name.len() + 1) in get_len() 648 BluetoothProperty::AdapterScanMode(_) => mem::size_of::<BtScanMode>(), in get_len() 650 devlist.len() * mem::size_of::<RawAddress>() in get_len() 652 BluetoothProperty::AdapterDiscoverableTimeout(_) => mem::size_of::<u32>(), in get_len() 656 BluetoothProperty::RemoteRssi(_) => mem::size_of::<i8>(), in get_len() 657 BluetoothProperty::RemoteVersionInfo(_) => mem::size_of::<BtRemoteVersion>(), in get_len() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/ |
D | uinput.rs | 6 use std::mem; 45 nix::request_code_write!(UINPUT_IOCTL_BASE, 100, mem::size_of::<libc::c_int>()); 47 nix::request_code_write!(UINPUT_IOCTL_BASE, 108, mem::size_of::<libc::c_char>()); 49 nix::request_code_write!(UINPUT_IOCTL_BASE, 101, mem::size_of::<libc::c_int>()); 112 mem::size_of::<UInputDevInfo>(), in serialize() 131 mem::size_of::<UInputEvent>(), in serialize() 190 mem::size_of::<UInputDevInfo>(), in init() 250 mem::size_of::<UInputDevInfo>(), in send_event()
|
D | socket.rs | 4 use std::mem; 196 let (opcode_arr, rest) = item.data.split_at(std::mem::size_of::<u16>()); in try_from() 200 let (_, rest) = rest.split_at(std::mem::size_of::<u8>()); in try_from() 210 let (len_arr, rest) = rest.split_at(std::mem::size_of::<u16>()); in try_from() 316 mem::size_of::<SockAddrHci>() as u32, in bind_channel() 372 let (opcode_arr, rest) = buf.split_at(std::mem::size_of::<u16>()); in read_mgmt_packet() 373 let (index_arr, rest) = rest.split_at(std::mem::size_of::<u16>()); in read_mgmt_packet() 374 let (len_arr, rest) = rest.split_at(std::mem::size_of::<u16>()); in read_mgmt_packet()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/ |
D | socket.rs | 68 pub const CONNECT_COMPLETE_SIZE: usize = std::mem::size_of::<bindings::sock_connect_signal_t>(); 82 let (size_bytes, rest) = bytes.split_at(std::mem::size_of::<u16>()); in try_from() 88 let (addr_bytes, rest) = rest.split_at(std::mem::size_of::<RawAddress>()); in try_from() 89 let (channel_bytes, rest) = rest.split_at(std::mem::size_of::<i32>()); in try_from() 90 let (status_bytes, rest) = rest.split_at(std::mem::size_of::<i32>()); in try_from() 91 let (max_tx_packet_size_bytes, rest) = rest.split_at(std::mem::size_of::<u16>()); in try_from() 92 let (max_rx_packet_size_bytes, _unused) = rest.split_at(std::mem::size_of::<u16>()); in try_from()
|
/packages/modules/Virtualization/vmbase/src/ |
D | heap.rs | 23 use core::mem; 133 let size = NonZeroUsize::new(size)?.checked_add(mem::size_of::<usize>())?; in allocate() 155 const ALIGN: usize = const_max_size(mem::size_of::<usize>(), mem::size_of::<u64>()); in malloc_layout()
|
/packages/modules/Bluetooth/system/rust/src/ |
D | packets.rs | 13 std::mem::discriminant(self) == std::mem::discriminant(rhs) in eq()
|
/packages/modules/Bluetooth/system/stack/mmc/test/ |
D | hfp_lc3_mmc_encoder_test.cc | 63 [this](int dt_us, int sr_hz, int sr_pcm_hz, void* mem) { in SetUp() argument 104 [](int dt_us, int sr_hz, int sr_pcm_hz, void* mem) { return nullptr; }; in TEST_F() argument 120 [&lc3_encoder](int dt_us, int sr_hz, int sr_pcm_hz, void* mem) { in TEST_F() argument
|
D | hfp_lc3_mmc_decoder_test.cc | 63 [this](int dt_us, int sr_hz, int sr_pcm_hz, void* mem) { in SetUp() argument 104 [](int dt_us, int sr_hz, int sr_pcm_hz, void* mem) { return nullptr; }; in TEST_F() argument 120 [&lc3_decoder](int dt_us, int sr_hz, int sr_pcm_hz, void* mem) { in TEST_F() argument
|
/packages/modules/Virtualization/vm/src/ |
D | run.rs | 177 memoryMib: config.common.mem.unwrap_or(0) as i32, // 0 means use the VM default in command_run_app() 251 if let Some(mem) = config.common.mem { in command_run() 252 vm_config.memoryMib = mem as i32; in command_run()
|
/packages/modules/Virtualization/virtualizationservice/vmnic/src/ |
D | aidl.rs | 49 let mut ifr: ifreq = unsafe { std::mem::zeroed() }; in create_tap_interface() 65 let ifr: ifreq = unsafe { std::mem::zeroed() }; in get_tap_ifreq()
|
/packages/modules/Virtualization/microdroid/initrd/src/ |
D | main.rs | 21 use std::mem::size_of; 28 const INITRD_FOOTER_LEN: usize = 2 * std::mem::size_of::<u32>() + BOOTCONFIG_MAGIC.len();
|
/packages/services/DeviceAsWebcam/jni/ |
D | Buffer.h | 101 V4L2Buffer(void* mem, const struct v4l2_buffer* buffer) : mMem(mem), mBuffer(*buffer) {} in V4L2Buffer() argument
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | MatrixTest.java | 191 for (int i = 0; i < m1.mem.length; i++) { in testCopy() 192 m1.mem[i] = random.nextDouble(); in testCopy()
|
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptxhd/src/ |
D | aptXHDbtenc.c | 53 static void clearmem_HD(void* mem, int32_t sz) { in clearmem_HD() argument 54 int8_t* m = (int8_t*)mem; in clearmem_HD()
|
/packages/modules/Virtualization/libs/apkverify/src/ |
D | v4.rs | 246 let size = end - start - std::mem::size_of::<u32>() as u64; in write_into() 286 let size = end - start - std::mem::size_of::<u32>() as u64; in write_into() 307 let num_bits = std::mem::size_of::<usize>() * 8; in log2()
|
/packages/modules/Virtualization/rialto/src/ |
D | communication.rs | 20 use core::mem; 210 let buffer = mem::take(&mut self.write_buf); in flush()
|
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptx/src/ |
D | aptXbtenc.c | 59 static void clearmem(void* mem, int32_t sz) { in clearmem() argument 60 int8_t* m = (int8_t*)mem; in clearmem()
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
D | jpeg_hook.cpp | 55 cinfo->dest = (struct jpeg_destination_mgr *) (*cinfo->mem->alloc_small) in MakeDst() 162 cinfo->src = (struct jpeg_source_mgr *) (*cinfo->mem->alloc_small) in MakeSrc()
|