Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 73) sorted by relevance

123

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DMatrix.java25 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/
Dkey.cpp36 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()
Dx509_generator.cpp114 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/gd/rust/topshim/src/
Dbtif.rs14 use std::mem;
500 BluetoothProperty::Uuids(uulist) => uulist.len() * mem::size_of::<Uuid>(), in get_len()
501 BluetoothProperty::ClassOfDevice(_) => mem::size_of::<u32>(), in get_len()
502 BluetoothProperty::TypeOfDevice(_) => mem::size_of::<BtDeviceType>(), in get_len()
504 mem::size_of::<BtServiceRecord>() + cmp::min(PROPERTY_NAME_MAX, rec.name.len() + 1) in get_len()
506 BluetoothProperty::AdapterScanMode(_) => mem::size_of::<BtScanMode>(), in get_len()
508 devlist.len() * mem::size_of::<RawAddress>() in get_len()
510 BluetoothProperty::AdapterDiscoverableTimeout(_) => mem::size_of::<u32>(), in get_len()
514 BluetoothProperty::RemoteRssi(_) => mem::size_of::<i8>(), in get_len()
515 BluetoothProperty::RemoteVersionInfo(_) => mem::size_of::<BtRemoteVersion>(), in get_len()
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/
Duinput.rs6 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()
Dsocket.rs4 use std::mem;
167 let (opcode_arr, rest) = item.data.split_at(std::mem::size_of::<u16>()); in try_from()
171 let (_, rest) = rest.split_at(std::mem::size_of::<u8>()); in try_from()
181 let (len_arr, rest) = rest.split_at(std::mem::size_of::<u16>()); in try_from()
284 mem::size_of::<SockAddrHci>() as u32, in bind_channel()
340 let (opcode_arr, rest) = buf.split_at(std::mem::size_of::<u16>()); in read_mgmt_packet()
341 let (index_arr, rest) = rest.split_at(std::mem::size_of::<u16>()); in read_mgmt_packet()
342 let (len_arr, rest) = rest.split_at(std::mem::size_of::<u16>()); in read_mgmt_packet()
/packages/modules/Virtualization/vm/src/
Drun.rs58 mem: Option<u32>, in command_run_app()
146 memoryMib: mem.unwrap_or(0) as i32, // 0 means use the VM default in command_run_app()
188 mem: Option<u32>, in command_run_microdroid()
218 mem, in command_run_microdroid()
234 mem: Option<u32>, in command_run()
242 if let Some(mem) = mem { in command_run()
243 config.memoryMib = mem as i32; in command_run()
Dmain.rs92 mem: Option<u32>,
152 mem: Option<u32>,
275 mem, in main()
294 mem, in main()
309 mem, in main()
323 mem, in main()
/packages/modules/Bluetooth/floss/hcidoc/src/
Dparser.rs38 let (version_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from()
39 let (data_type_bytes, _rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from()
150 let (orig_len_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from()
151 let (included_len_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from()
152 let (flags_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from()
153 let (drops_bytes, rest) = rest.split_at(std::mem::size_of::<u32>()); in try_from()
154 let (ts_bytes, _rest) = rest.split_at(std::mem::size_of::<u64>()); in try_from()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dsocket.rs83 let (size_bytes, rest) = bytes.split_at(std::mem::size_of::<u16>()); in try_from()
91 let (addr_bytes, rest) = rest.split_at(std::mem::size_of::<RawAddress>()); in try_from()
92 let (channel_bytes, rest) = rest.split_at(std::mem::size_of::<i32>()); in try_from()
93 let (status_bytes, rest) = rest.split_at(std::mem::size_of::<i32>()); in try_from()
94 let (max_tx_packet_size_bytes, rest) = rest.split_at(std::mem::size_of::<u16>()); in try_from()
95 let (max_rx_packet_size_bytes, _unused) = rest.split_at(std::mem::size_of::<u16>()); in try_from()
/packages/modules/Virtualization/pvmfw/src/
Dheap.rs23 use core::mem;
104 let size = NonZeroUsize::new(size)?.checked_add(mem::size_of::<usize>())?; in allocate()
126 const ALIGN: usize = const_max_size(mem::size_of::<usize>(), mem::size_of::<u64>()); in malloc_layout()
Dconfig.rs19 use core::mem;
105 helpers::unchecked_align_up(mem::size_of::<Self>(), mem::size_of::<u64>());
/packages/modules/Bluetooth/system/embdrv/lc3/src/
Dlc3.c300 int dt_us, int sr_hz, int sr_pcm_hz, void *mem) in lc3_setup_encoder() argument
309 if (dt >= LC3_NUM_DT || sr_pcm >= LC3_NUM_SRATE || sr > sr_pcm || !mem) in lc3_setup_encoder()
312 struct lc3_encoder *encoder = mem; in lc3_setup_encoder()
535 int dt_us, int sr_hz, int sr_pcm_hz, void *mem) in lc3_setup_decoder() argument
544 if (dt >= LC3_NUM_DT || sr_pcm >= LC3_NUM_SRATE || sr > sr_pcm || !mem) in lc3_setup_decoder()
547 struct lc3_decoder *decoder = mem; in lc3_setup_decoder()
/packages/modules/Bluetooth/system/embdrv/lc3/include/
Dlc3.h247 int dt_us, int sr_hz, int sr_pcm_hz, void *mem);
287 int dt_us, int sr_hz, int sr_pcm_hz, void *mem);
/packages/modules/Virtualization/libs/libfdt/src/
Diterators.rs19 use core::{mem::size_of, ops::Range, slice::ChunksExact};
91 unsafe { core::mem::transmute::<[u32; 2], [u8; 2 * size_of::<u32>()]>(cells) }
246 … core::mem::transmute::<[u32; Self::SIZE_CELLS], [u8; Self::SIZE_CELLS * size_of::<u32>()]>(
Dlib.rs27 use core::mem;
635 mem::transmute::<&[u8], &Self>(fdt) in unchecked_from_slice()
644 mem::transmute::<&mut [u8], &mut Self>(fdt) in unchecked_from_mut_slice()
/packages/services/DeviceAsWebcam/jni/
DBuffer.h101 V4L2Buffer(void* mem, const struct v4l2_buffer* buffer) : mMem(mem), mBuffer(*buffer) {} in V4L2Buffer() argument
DUVCProvider.cpp585 void* mem = mmap(/*addr*/ nullptr, buffer.length, PROT_READ | PROT_WRITE, MAP_SHARED, in mapBuffer() local
587 if (mem == MAP_FAILED) { in mapBuffer()
592 ALOGV("%s: Allocated and mapped buffer at %p of size %u", __FUNCTION__, mem, buffer.length); in mapBuffer()
593 return std::make_shared<V4L2Buffer>(mem, &buffer); in mapBuffer()
/packages/modules/Virtualization/microdroid/initrd/src/
Dmain.rs21 use std::mem::size_of;
28 const INITRD_FOOTER_LEN: usize = 2 * std::mem::size_of::<u32>() + BOOTCONFIG_MAGIC.len();
/packages/modules/Virtualization/libs/apkverify/src/
Dv4.rs246 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/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DMatrixTest.java191 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/
DaptXHDbtenc.c53 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/Bluetooth/system/embdrv/encoder_for_aptx/src/
DaptXbtenc.c59 static void clearmem(void* mem, int32_t sz) { in clearmem() argument
60 int8_t* m = (int8_t*)mem; in clearmem()
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsEntry.java80 public ProcStatsEntry(String pkgName, int uid, String procName, long duration, long mem, in ProcStatsEntry() argument
86 mAvgBgMem = mMaxBgMem = mAvgRunMem = mMaxRunMem = mem; in ProcStatsEntry()
87 mBgWeight = mRunWeight = ((double)memDuration) * mem; in ProcStatsEntry()
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_hook.cpp55 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()

123