Home
last modified time | relevance | path

Searched refs:SetMemory (Results 1 – 21 of 21) sorted by relevance

/system/core/libunwindstack/tests/
DDwarfCfaLogTest.cpp79 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{i}); in TYPED_TEST_P()
91 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{0x00}); in TYPED_TEST_P()
102 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{0x83, 0x04}); in TYPED_TEST_P()
112 this->memory_.SetMemory(0x2100, std::vector<uint8_t>{0x83, 0x84, 0x01}); in TYPED_TEST_P()
123 this->memory_.SetMemory(0x500, std::vector<uint8_t>{0x05, 0x03, 0x02}); in TYPED_TEST_P()
133 this->memory_.SetMemory(0x1500, std::vector<uint8_t>{0x05, 0x81, 0x01, 0x82, 0x12}); in TYPED_TEST_P()
144 this->memory_.SetMemory(0x500, std::vector<uint8_t>{0x11, 0x05, 0x10}); in TYPED_TEST_P()
155 this->memory_.SetMemory(0x1500, std::vector<uint8_t>{0x11, 0x86, 0x01, 0xff, 0x7f}); in TYPED_TEST_P()
166 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{0xc2}); in TYPED_TEST_P()
176 this->memory_.SetMemory(0x3000, std::vector<uint8_t>{0x82, 0x04, 0xc2}); in TYPED_TEST_P()
[all …]
DSymbolsTest.cpp66 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
69 this->memory_.SetMemory(0x2040, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
93 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
96 this->memory_.SetMemory(0x2040, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
107 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
115 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
129 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
131 this->memory_.SetMemory(0x2040, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
135 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
137 this->memory_.SetMemory(0x2100, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
[all …]
DMemoryFake.h37 void SetMemory(uint64_t addr, const void* memory, size_t length);
42 SetMemory(addr, &value, sizeof(value)); in SetData8()
46 SetMemory(addr, &value, sizeof(value)); in SetData16()
50 SetMemory(addr, &value, sizeof(value)); in SetData32()
54 SetMemory(addr, &value, sizeof(value)); in SetData64()
57 void SetMemory(uint64_t addr, std::vector<uint8_t> values) { in SetMemory() function
58 SetMemory(addr, values.data(), values.size()); in SetMemory()
61 void SetMemory(uint64_t addr, std::string string) { in SetMemory() function
62 SetMemory(addr, string.c_str(), string.size() + 1); in SetMemory()
DElfInterfaceTest.cpp48 memory_.SetMemory(offset, string, strlen(string) + 1); in SetStringMemory()
147 memory_.SetMemory(offset, &sym, sizeof(sym)); in InitSym()
148 memory_.SetMemory(sym_offset + name_offset, name, strlen(name) + 1); in InitSym()
159 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in SinglePtLoad()
167 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in SinglePtLoad()
197 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in MultipleExecutablePtLoads()
205 memory_.SetMemory(0x100, &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
214 memory_.SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
223 memory_.SetMemory(0x100 + 2 * sizeof(phdr), &phdr, sizeof(phdr)); in MultipleExecutablePtLoads()
264 memory_.SetMemory(0, &ehdr, sizeof(ehdr)); in MultipleExecutablePtLoadsIncrementsNotSizeOfPhdr()
[all …]
DDwarfCfaTest.cpp77 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{i}); in TYPED_TEST_P()
90 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{0x00}); in TYPED_TEST_P()
103 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{0x83, 0x04}); in TYPED_TEST_P()
118 this->memory_.SetMemory(0x2100, std::vector<uint8_t>{0x83, 0x84, 0x01}); in TYPED_TEST_P()
134 this->memory_.SetMemory(0x500, std::vector<uint8_t>{0x05, 0x03, 0x02}); in TYPED_TEST_P()
150 this->memory_.SetMemory(0x1500, std::vector<uint8_t>{0x05, 0x81, 0x01, 0x82, 0x12}); in TYPED_TEST_P()
165 this->memory_.SetMemory(0x500, std::vector<uint8_t>{0x11, 0x05, 0x10}); in TYPED_TEST_P()
182 this->memory_.SetMemory(0x1500, std::vector<uint8_t>{0x11, 0x86, 0x01, 0xff, 0x7f}); in TYPED_TEST_P()
197 this->memory_.SetMemory(0x2000, std::vector<uint8_t>{0xc2}); in TYPED_TEST_P()
212 this->memory_.SetMemory(0x3000, std::vector<uint8_t>{0x82, 0x04, 0xc2}); in TYPED_TEST_P()
[all …]
DDwarfOpTest.cpp60 this->op_memory_.SetMemory(0, std::vector<uint8_t>{0x96}); in TYPED_TEST_P()
76 this->op_memory_.SetMemory(0, std::vector<uint8_t>{0x50}); in TYPED_TEST_P()
86 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P()
99 this->op_memory_.SetMemory(0, std::vector<uint8_t>{0x2f, 0xfd, 0xff}); in TYPED_TEST_P()
112 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P()
152 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P()
173 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P()
194 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P()
196 this->regular_memory_.SetMemory(0x2010, &value, sizeof(value)); in TYPED_TEST_P()
214 this->op_memory_.SetMemory(0, std::vector<uint8_t>{0x94}); in TYPED_TEST_P()
[all …]
DDexFileTest.cpp78 memory.SetMemory(0x1000, kDexData, 10); in TEST()
86 memory.SetMemory(0x1000, kDexData, sizeof(kDexData) - 2); in TEST()
94 memory.SetMemory(0x1000, kDexData, sizeof(kDexData)); in TEST()
140 memory.SetMemory(0x4000, kDexData, sizeof(kDexData)); in TEST()
147 memory.SetMemory(0x4000, kDexData, sizeof(kDexData)); in TEST()
160 memory.SetMemory(0x4000, kDexData, sizeof(kDexData)); in TEST()
173 memory.SetMemory(0x4000, kDexData, sizeof(kDexData)); in TEST()
191 memory.SetMemory(0x4000, kDexData, sizeof(kDexData)); in TEST()
DDwarfSectionImplTest.cpp122 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x96, 0x96, 0x96}); in TYPED_TEST_P()
138 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x0c, 0x00, 0x00, 0x00, 0x80}); in TYPED_TEST_P()
140 this->memory_.SetMemory(0x80000000, &cfa_value, sizeof(cfa_value)); in TYPED_TEST_P()
156 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x0c, 0x00, 0x00, 0x00, 0x80}); in TYPED_TEST_P()
174 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x50, 0x96, 0x96}); in TYPED_TEST_P()
328 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x0c, 'D', 'E', 'X', '1', 0x13, 0x08, 0x11}); in TYPED_TEST_P()
464 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x0c, 0x00, 0x00, 0x00, 0x80}); in TYPED_TEST_P()
466 this->memory_.SetMemory(0x80000000, &cfa_value, sizeof(cfa_value)); in TYPED_TEST_P()
484 this->memory_.SetMemory(0x5000, std::vector<uint8_t>{0x0c, 0x00, 0x00, 0x00, 0x80}); in TYPED_TEST_P()
504 this->memory_.SetMemory(0x3000, std::vector<uint8_t>{0x09, 0x02, 0x01}); in TYPED_TEST_P()
[all …]
DMemoryTest.cpp59 memory.SetMemory(100, name.c_str(), name.size() + 1); in TEST()
81 memory.SetMemory(0, name.c_str(), name.size()); in TEST()
DMapInfoGetElfTest.cpp84 memory_->SetMemory(0x3000, &ehdr, sizeof(ehdr)); in TEST_F()
104 memory_->SetMemory(0x8000, &ehdr, sizeof(ehdr)); in TEST_F()
118 memory_->SetMemory(0x3000, &ehdr, sizeof(ehdr)); in TEST_F()
130 memory_->SetMemory(0x2000 + offset, ptr, size); in TEST_F()
146 memory_->SetMemory(0x5000 + offset, ptr, size); in TEST_F()
310 memory_->SetMemory(0x7000, &ehdr, sizeof(ehdr)); in TEST_F()
337 memory_->SetMemory(0x7000, &ehdr, sizeof(ehdr)); in TEST_F()
381 memory_->SetMemory(0x2000, &ehdr, sizeof(ehdr)); in TEST_F()
397 memory_->SetMemory(0x1000, &ehdr, sizeof(ehdr)); in TEST_F()
DMapInfoGetLoadBiasTest.cpp137 memory->SetMemory(offset, &ehdr, sizeof(ehdr)); in InitElfData()
142 memory->SetMemory(offset + 0x5000, &phdr, sizeof(phdr)); in InitElfData()
146 memory->SetMemory(offset + 0x5000 + sizeof(phdr), &phdr, sizeof(phdr)); in InitElfData()
DDwarfEhFrameWithHdrTest.cpp81 this->memory_.SetMemory( in TYPED_TEST_P()
121 this->memory_.SetMemory(0x1000, std::vector<uint8_t>{0x1, DW_EH_PE_udata2, DW_EH_PE_udata4, in TYPED_TEST_P()
131 this->memory_.SetMemory(0x1308, std::vector<uint8_t>{1, 'z', 'R', '\0', 0, 0, 0, 0, 0x1b}); in TYPED_TEST_P()
159 this->memory_.SetMemory( in TYPED_TEST_P()
177 this->memory_.SetMemory(0x1308, std::vector<uint8_t>{1, '\0', 0, 0, 0}); in TYPED_TEST_P()
367 this->memory_.SetMemory(0xf008, std::vector<uint8_t>{1, '\0', 4, 8, 0x20}); in TYPED_TEST_P()
404 this->memory_.SetMemory(0x6014, std::vector<uint8_t>{1, '\0', 4, 8, 0x20}); in TYPED_TEST_P()
DDwarfEhFrameTest.cpp57 this->memory_.SetMemory(0x5008, std::vector<uint8_t>{1, '\0', 16, 32, 1}); in TYPED_TEST_P()
95 this->memory_.SetMemory(0x5014, std::vector<uint8_t>{1, '\0', 16, 32, 1}); in TYPED_TEST_P()
DElfTest.cpp60 memory_->SetMemory(0, &ehdr, sizeof(ehdr)); in InitElf32()
69 memory_->SetMemory(0x100, &phdr, sizeof(phdr)); in InitElf32()
81 memory_->SetMemory(0x100 + sizeof(phdr), &phdr, sizeof(phdr)); in InitElf32()
95 memory_->SetMemory(0, &ehdr, sizeof(ehdr)); in InitElf64()
104 memory_->SetMemory(0x100, &phdr, sizeof(phdr)); in InitElf64()
244 memory_->SetMemory(offset, ptr, size); in TEST_F()
258 memory_->SetMemory(offset, ptr, size); in TEST_F()
DJitDebugTest.cpp98 memory_->SetMemory(offset, &ehdr, sizeof(ehdr)); in CreateElf()
103 memory_->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in CreateElf()
111 memory_->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in CreateElf()
112 memory_->SetMemory(offset + 0x500, ".debug_frame"); in CreateElf()
121 memory_->SetMemory(offset + sh_offset, &shdr, sizeof(shdr)); in CreateElf()
DDwarfOpLogTest.cpp58 this->op_memory_.SetMemory(0, opcode_buffer); in TYPED_TEST_P()
DMemoryFake.cpp37 void MemoryFake::SetMemory(uint64_t addr, const void* memory, size_t length) { in SetMemory() function in unwindstack::MemoryFake
DDwarfMemoryTest.cpp65 memory_.SetMemory(0, std::vector<uint8_t>{0x10, 0x18, 0xff, 0xfe}); in TEST_F()
124 memory_.SetMemory(0, std::vector<uint8_t>{0x01, 0x80, 0x24, 0xff, 0xc3, 0xff, 0x7f}); in TEST_F()
141 memory_.SetMemory(0, std::vector<uint8_t>{0x06, 0x40, 0x82, 0x34, 0x89, 0x64, 0xf9, 0xc3, 0x8f, in TEST_F()
302 memory_.SetMemory(0, std::vector<uint8_t>{0x80, 0x42}); in ReadEncodedValue_leb128()
DMapInfoCreateMemoryTest.cpp271 memory_->SetMemory(info.start, buffer.data(), buffer.size()); in TEST_F()
296 memory_->SetMemory(0x1000, &ehdr, sizeof(ehdr)); in TEST_F()
340 memory_->SetMemory(0x1000, &ehdr, sizeof(ehdr)); in TEST_F()
345 memory_->SetMemory(0x3000, &ehdr, sizeof(ehdr)); in TEST_F()
DDwarfDebugFrameTest.cpp58 memory->SetMemory(offset, data); in SetCie32()
70 memory->SetMemory(offset, data); in SetCie64()
85 memory->SetMemory(offset, *data); in SetFde32()
103 memory->SetMemory(offset, *data); in SetFde64()
483 this->memory_.SetMemory(0x5000, zero); in TYPED_TEST_P()
498 this->memory_.SetMemory(0x5000, zero); in TYPED_TEST_P()
DDexFilesTest.cpp141 memory_->SetMemory(dex_file, kDexData, sizeof(kDexData) * sizeof(uint32_t)); in WriteDex()