/system/libhidl/transport/memory/1.0/default/ |
D | AshmemMapper.cpp | 33 Return<sp<IMemory>> AshmemMapper::mapMemory(const hidl_memory& mem) { in mapMemory() argument 34 if (mem.handle()->numFds == 0) { in mapMemory() 42 if (mem.size() > SIZE_MAX) { in mapMemory() 43 ALOGE("Cannot map %" PRIu64 " bytes of memory because it is too large.", mem.size()); in mapMemory() 48 int fd = mem.handle()->data[0]; in mapMemory() 49 void* data = mmap(0, mem.size(), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in mapMemory() 56 return new AshmemMemory(mem, data); in mapMemory()
|
D | AshmemMapper.h | 42 Return<sp<IMemory>> mapMemory(const hidl_memory& mem) override;
|
/system/nfc/src/nfc/tags/ |
D | ce_t4t.cc | 111 tCE_T4T_MEM* p_t4t = &ce_cb.mem.t4t; in ce_t4t_select_file() 155 tCE_T4T_MEM* p_t4t = &ce_cb.mem.t4t; in ce_t4t_read_binary() 240 tCE_T4T_MEM* p_t4t = &ce_cb.mem.t4t; in ce_t4t_update_binary() 318 tCE_T4T_MEM* p_t4t = &ce_cb.mem.t4t; in ce_t4t_set_version_in_cc() 405 (ce_cb.mem.t4t.p_ndef_msg)) { in ce_t4t_process_select_app_cmd() 418 ce_cb.mem.t4t.selected_aid_idx = CE_T4T_MAX_REG_AID; in ce_t4t_process_select_app_cmd() 420 if ((ce_cb.mem.t4t.reg_aid[xx].aid_len > 0) && in ce_t4t_process_select_app_cmd() 421 (ce_cb.mem.t4t.reg_aid[xx].aid_len == data_len) && in ce_t4t_process_select_app_cmd() 422 (!(memcmp(ce_cb.mem.t4t.reg_aid[xx].aid, p_cmd, data_len)))) { in ce_t4t_process_select_app_cmd() 423 ce_cb.mem.t4t.selected_aid_idx = xx; in ce_t4t_process_select_app_cmd() [all …]
|
D | ce_t3t.cc | 74 memcpy(ce_cb.mem.t3t.local_pmm, CE_DEFAULT_LF_PMM, NCI_T3T_PMM_LEN); in ce_t3t_init() 75 ce_cb.mem.t3t.ndef_info.nbr = CE_T3T_DEFAULT_CHECK_MAXBLOCKS; in ce_t3t_init() 76 ce_cb.mem.t3t.ndef_info.nbw = CE_T3T_DEFAULT_UPDATE_MAXBLOCKS; in ce_t3t_init() 159 tCE_T3T_MEM* p_cb = &p_ce_cb->mem.t3t; in ce_t3t_send_rsp() 200 tCE_T3T_MEM* p_cb = &p_ce_cb->mem.t3t; in ce_t3t_handle_update_cmd() 370 tCE_T3T_MEM* p_cb = &p_ce_cb->mem.t3t; in ce_t3t_handle_check_cmd() 520 tCE_T3T_MEM* p_cb = &p_mem_cb->mem.t3t; in ce_t3t_handle_non_nfc_forum_cmd() 625 tCE_T3T_MEM* p_cb = &p_ce_cb->mem.t3t; in ce_t3t_data_cback() 803 tCE_T3T_MEM* p_cb = &ce_cb.mem.t3t; in ce_t3t_conn_cback() 843 tCE_T3T_MEM* p_cb = &ce_cb.mem.t3t; in ce_select_t3t() [all …]
|
D | rw_t1t_ndef.cc | 110 memcpy(p_t1t->mem, (uint8_t*)(p_data + T1T_ADD_LEN), T1T_SEGMENT_SIZE); in rw_t1t_handle_rsp() 250 if (((p_t1t->mem[T1T_CC_NMN_BYTE] == T1T_CC_NMN) || in rw_t1t_update_tag_state() 251 (p_t1t->mem[T1T_CC_NMN_BYTE] == 0)) && in rw_t1t_update_tag_state() 252 ((p_t1t->mem[T1T_CC_VNO_BYTE] == T1T_CC_VNO) || in rw_t1t_update_tag_state() 253 (p_t1t->mem[T1T_CC_VNO_BYTE] == T1T_CC_LEGACY_VNO)) && in rw_t1t_update_tag_state() 254 ((p_t1t->mem[T1T_CC_RWA_BYTE] == T1T_CC_RWA_RW) || in rw_t1t_update_tag_state() 255 (p_t1t->mem[T1T_CC_RWA_BYTE] == T1T_CC_RWA_RO))) { in rw_t1t_update_tag_state() 258 if (p_t1t->mem[T1T_CC_RWA_BYTE] == T1T_CC_RWA_RO) { in rw_t1t_update_tag_state() 261 } else if (p_t1t->mem[T1T_CC_RWA_BYTE] == T1T_CC_RWA_RW) { in rw_t1t_update_tag_state() 297 p_t1t->lockbyte[num_locks].lock_byte = p_t1t->mem[offset]; in rw_t1t_read_locks() [all …]
|
/system/core/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 | 112 BUF_MEM* mem = nullptr; in X509ToPEMString() local 113 BIO_get_mem_ptr(bio.get(), &mem); in X509ToPEMString() 114 if (!mem || !mem->data || !mem->length) { in X509ToPEMString() 119 return std::string(mem->data, mem->length); in X509ToPEMString()
|
/system/extras/tests/pftest/ |
D | pftest.c | 47 char *mem = malloc((N_PAGES+1) * 4096); in main() local 53 mem = (char *) ((intptr_t) (mem + 4096) & ~0xfff); in main() 76 *(intptr_t *) (mem + 4096 * pageIdx + entryOffset) = in main() 77 (intptr_t) (mem + 4096 * nextPageIdx + nextEntryOffset); in main() 80 *(intptr_t *) (mem + 4096 * pageIdx + entryOffset) = in main() 81 (intptr_t) &mem[0]; in main() 89 p = (intptr_t *) &mem[0]; in main()
|
/system/chre/platform/shared/include/chre/platform/shared/ |
D | memory_debug.h | 68 void *mem = nullptr; in debugAlloc() local 72 mem = allocFunc(size + kDebugOverhead); in debugAlloc() 73 if (mem != nullptr) { in debugAlloc() 75 auto *preamble = static_cast<MemoryDebugPreamble *>(mem); in debugAlloc() 78 mem = static_cast<void *>(preamble + 1); in debugAlloc() 81 uint8_t *trailer = static_cast<uint8_t *>(mem) + size; in debugAlloc() 86 return mem; in debugAlloc()
|
/system/extras/memory_replay/ |
D | File.cpp | 80 void* mem = in GetUnwindInfo() local 82 if (mem == MAP_FAILED) { in GetUnwindInfo() 85 *reinterpret_cast<size_t*>(mem) = 0; in GetUnwindInfo() 116 *reinterpret_cast<size_t*>(mem) = lines; in GetUnwindInfo() 122 *num_entries = *reinterpret_cast<size_t*>(mem); in GetUnwindInfo() 123 munmap(mem, sizeof(size_t)); in GetUnwindInfo() 125 mem = mmap(nullptr, *num_entries * sizeof(AllocEntry), PROT_READ | PROT_WRITE, in GetUnwindInfo() 127 if (mem == MAP_FAILED) { in GetUnwindInfo() 130 *entries = reinterpret_cast<AllocEntry*>(mem); in GetUnwindInfo()
|
/system/libhidl/transport/allocator/1.0/vts/functional/ |
D | VtsHidlAllocatorV1_0TargetTest.cpp | 54 EXPECT_OK(allocator->allocate(size, [&](bool success, const hidl_memory& mem) { in expectAllocateSuccess() argument 56 EXPECT_EQ(mem.size(), size) in expectAllocateSuccess() 57 << "Allocated " << size << " but got hidl_memory with size " << mem.size(); in expectAllocateSuccess() 58 memory = mapMemory(mem); in expectAllocateSuccess() 73 for (const hidl_memory& mem : mems) { in expectBatchAllocateSuccess() local 75 EXPECT_EQ(mem.size(), size) in expectBatchAllocateSuccess() 76 << "Allocated " << size << " but got hidl_memory with size " << mem.size(); in expectBatchAllocateSuccess() 77 memories.push_back(mapMemory(mem)); in expectBatchAllocateSuccess()
|
/system/memory/libmeminfo/ |
D | libmeminfo_benchmark.cpp | 59 static void get_mem_info(uint64_t mem[], const char* file) { in get_mem_info() argument 86 memset(mem, 0, sizeof(uint64_t) * 15); in get_mem_info() 102 mem[i] = atoll(num); in get_mem_info() 164 uint64_t mem[MEMINFO_COUNT]; in BM_ReadMemInfo_old() local 166 get_mem_info(mem, tf.path); in BM_ReadMemInfo_old() 221 std::vector<uint64_t> mem(MEMINFO_COUNT); in BM_ReadMemInfo_new() local 232 smi.ReadMemInfo(tags, &mem, file); in BM_ReadMemInfo_new() 334 uint64_t mem[MEMINFO_COUNT]; in BM_MemInfoWithZram_old() local 336 get_mem_info(mem, tf.path); in BM_MemInfoWithZram_old() 337 mem[MEMINFO_ZRAM_TOTAL] = get_zram_mem_used("/sys/block/zram0/") / 1024; in BM_MemInfoWithZram_old() [all …]
|
D | libmeminfo_test.cpp | 699 std::vector<uint64_t> mem(MEMINFO_COUNT); in TEST() local 706 EXPECT_TRUE(mi.ReadMemInfo(tags, &mem, file)); in TEST() 708 EXPECT_EQ(mem[MEMINFO_TOTAL], 3019740); in TEST() 709 EXPECT_EQ(mem[MEMINFO_FREE], 1809728); in TEST() 710 EXPECT_EQ(mem[MEMINFO_BUFFERS], 54736); in TEST() 711 EXPECT_EQ(mem[MEMINFO_CACHED], 776052); in TEST() 712 EXPECT_EQ(mem[MEMINFO_SHMEM], 4020); in TEST() 713 EXPECT_EQ(mem[MEMINFO_SLAB], 86464); in TEST() 714 EXPECT_EQ(mem[MEMINFO_SLAB_RECLAIMABLE], 44432); in TEST() 715 EXPECT_EQ(mem[MEMINFO_SLAB_UNRECLAIMABLE], 42032); in TEST() [all …]
|
/system/chre/apps/chqts/src/shared/ |
D | nano_string.cc | 35 void memset(void *mem, int val, size_t count) { in memset() argument 36 uint8_t *bytes = static_cast<uint8_t*>(mem); in memset()
|
D | nano_string.h | 25 void memset(void *mem, int val, size_t count);
|
/system/libhidl/transport/memory/token/1.0/ |
D | IMemoryToken.hal | 24 * @return mem Memory referenced by this token. 26 get() generates (memory mem);
|
/system/libhidl/transport/memory/1.0/ |
D | IMapper.hal | 24 * @param mem Reference to shared memory. 28 mapMemory(memory mem) generates (IMemory mappedMemory);
|
/system/extras/alloc-stress/ |
D | Android.bp | 34 name: "mem-pressure", 35 srcs: ["mem-pressure.cpp"],
|
/system/libhidl/base/ |
D | HidlSupport.cpp | 281 sp<HidlMemory> HidlMemory::getInstance(const hidl_memory& mem) { in getInstance() argument 283 instance->hidl_memory::operator=(mem); in getInstance() 287 sp<HidlMemory> HidlMemory::getInstance(hidl_memory&& mem) { in getInstance() argument 289 instance->hidl_memory::operator=(std::move(mem)); in getInstance()
|
/system/core/libunwindstack/tests/ |
D | MapInfoCreateMemoryTest.cpp | 300 std::unique_ptr<Memory> mem(map_info->CreateMemory(process_memory_)); in TEST_F() local 301 ASSERT_TRUE(mem.get() != nullptr); in TEST_F() 309 size_t bytes = mem->Read(0, buffer.data(), buffer.size()); in TEST_F() 316 bytes = mem->Read(0x4000, buffer.data(), buffer.size()); in TEST_F() 347 std::unique_ptr<Memory> mem(map_info->CreateMemory(process_memory_)); in TEST_F() local 348 ASSERT_TRUE(mem.get() != nullptr); in TEST_F() 356 size_t bytes = mem->Read(0, buffer.data(), buffer.size()); in TEST_F() 363 bytes = mem->Read(0x1000, buffer.data(), buffer.size()); in TEST_F()
|
/system/memory/libmemunreachable/ |
D | Allocator.cpp | 216 void* mem = MapAligned(kChunkSize, kChunkSize); in operator new() local 217 if (!mem) { in operator new() 221 return mem; in operator new() 308 void* mem = MapAligned(kPageSize, kPageSize); in operator new() local 309 if (!mem) { in operator new() 314 return mem; in operator new()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 143 segment[0].mem = (void *) ((uintptr_t) start_address + KEXEC_ARM_ZIMAGE_OFFSET); in main() 148 segment[1].mem = (void *) ((uintptr_t) start_address + KEXEC_ARM_ATAGS_OFFSET); in main()
|
/system/chre/external/kiss_fft/ |
D | kiss_fftr.h | 21 kiss_fftr_cfg kiss_fftr_alloc(int nfft,int inverse_fft,void * mem, size_t * lenmem);
|
D | kiss_fft.h | 81 kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem);
|
/system/tools/hidl/hidl2aidl/test/1.1/ |
D | IFoo.hal | 38 * @param mem memory 40 useMemory(memory mem);
|