/system/unwinding/libunwindstack/tests/ |
D | MemoryThreadCacheTest.cpp | 49 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 58 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 67 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 77 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 88 ASSERT_TRUE(memory_cache_->ReadFully(0x8ff0, buffer.data(), 32)); in TEST_F() 94 ASSERT_TRUE(memory_cache_->ReadFully(0x8ff0, buffer.data(), 32)); in TEST_F() 101 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 110 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 118 ASSERT_TRUE(memory_cache_->ReadFully(0xa010, buffer.data(), kMaxCachedSize)); in TEST_F() 123 ASSERT_TRUE(memory_cache_->ReadFully(0xa010, buffer.data(), kMaxCachedSize)); in TEST_F() [all …]
|
D | MemoryOfflineBufferTest.cpp | 58 ASSERT_FALSE(memory_->ReadFully(0, buffer.data(), 1)); in TEST_F() 59 ASSERT_FALSE(memory_->ReadFully(0xfff, buffer.data(), 1)); in TEST_F() 60 ASSERT_FALSE(memory_->ReadFully(0xfff, buffer.data(), 2)); in TEST_F() 61 ASSERT_FALSE(memory_->ReadFully(0x3000, buffer.data(), 1)); in TEST_F() 62 ASSERT_FALSE(memory_->ReadFully(0x3001, buffer.data(), 1)); in TEST_F() 67 ASSERT_TRUE(memory_->ReadFully(kStart, buffer.data(), 10)); in TEST_F() 70 ASSERT_TRUE(memory_->ReadFully(kStart + 555, buffer.data(), 40)); in TEST_F() 73 ASSERT_TRUE(memory_->ReadFully(kStart + kLength - 105, buffer.data(), 105)); in TEST_F() 85 ASSERT_TRUE(memory_->ReadFully(kStart, buffer.data(), 100)); in TEST_F() 89 ASSERT_TRUE(memory_->ReadFully(0x12000, buffer.data(), 100)); in TEST_F()
|
D | MemoryCacheTest.cpp | 48 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 57 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 66 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 76 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 87 ASSERT_TRUE(memory_cache_->ReadFully(0x8ff0, buffer.data(), 32)); in TEST_F() 93 ASSERT_TRUE(memory_cache_->ReadFully(0x8ff0, buffer.data(), 32)); in TEST_F() 100 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 109 ASSERT_TRUE(memory_cache_->ReadFully(0x8000 + i, buffer.data(), i)) in TEST_F() 117 ASSERT_TRUE(memory_cache_->ReadFully(0xa010, buffer.data(), kMaxCachedSize)); in TEST_F() 122 ASSERT_TRUE(memory_cache_->ReadFully(0xa010, buffer.data(), kMaxCachedSize)); in TEST_F() [all …]
|
D | MemoryFileTest.cpp | 52 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F() 62 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F() 78 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 8)); in TEST_F() 94 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F() 115 ASSERT_TRUE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F() 152 ASSERT_FALSE(memory_.ReadFully(0, buffer.data(), 10)); in TEST_F() 156 ASSERT_FALSE(memory_.ReadFully(10000, buffer.data(), 10)); in TEST_F() 157 ASSERT_FALSE(memory_.ReadFully(5000, buffer.data(), 10)); in TEST_F() 158 ASSERT_FALSE(memory_.ReadFully(4990, buffer.data(), 11)); in TEST_F() 159 ASSERT_TRUE(memory_.ReadFully(4990, buffer.data(), 10)); in TEST_F() [all …]
|
D | MemoryRangeTest.cpp | 47 ASSERT_TRUE(range.ReadFully(0, dst.data(), dst.size())); in TEST_F() 59 ASSERT_TRUE(range.ReadFully(1020, dst.data(), 4)); in TEST_F() 65 ASSERT_FALSE(range.ReadFully(1020, dst.data(), 5)); in TEST_F() 66 ASSERT_FALSE(range.ReadFully(1024, dst.data(), 1)); in TEST_F() 67 ASSERT_FALSE(range.ReadFully(1024, dst.data(), 1024)); in TEST_F() 70 ASSERT_TRUE(range.ReadFully(1020, dst.data(), 4)); in TEST_F() 78 ASSERT_FALSE(overflow->ReadFully(UINT64_MAX - 10, buffer.data(), 100)); in TEST_F()
|
D | MemoryBufferTest.cpp | 40 ASSERT_FALSE(memory_->ReadFully(0, buffer.data(), 1)); in TEST_F() 59 ASSERT_TRUE(memory_->ReadFully(0, buffer.data(), buffer.size())); in TEST_F() 68 ASSERT_FALSE(memory_->ReadFully(0, buffer.data(), 101)); in TEST_F() 69 ASSERT_FALSE(memory_->ReadFully(100, buffer.data(), 1)); in TEST_F() 70 ASSERT_FALSE(memory_->ReadFully(101, buffer.data(), 2)); in TEST_F() 71 ASSERT_FALSE(memory_->ReadFully(99, buffer.data(), 2)); in TEST_F() 72 ASSERT_TRUE(memory_->ReadFully(99, buffer.data(), 1)); in TEST_F() 79 ASSERT_FALSE(memory_->ReadFully(UINT64_MAX - 100, buffer.data(), 200)); in TEST_F()
|
D | MemoryLocalTest.cpp | 36 ASSERT_TRUE(local.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); in TEST() 43 ASSERT_TRUE(local.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); in TEST() 57 ASSERT_FALSE(local.ReadFully(0, dst.data(), 1)); in TEST() 58 ASSERT_FALSE(local.ReadFully(0, dst.data(), 100)); in TEST() 68 ASSERT_FALSE(local.ReadFully(reinterpret_cast<uint64_t>(&value), dst.data(), SIZE_MAX)); in TEST()
|
D | MemoryRemoteTest.cpp | 57 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); in TEST() 86 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), src.size())); in TEST() 160 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src), dst.data(), pagesize)); in TEST() 165 ASSERT_FALSE(remote.ReadFully(reinterpret_cast<uint64_t>(src) + pagesize, dst.data(), 1)); in TEST() 166 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src) + pagesize - 1, dst.data(), 1)); in TEST() 167 ASSERT_FALSE(remote.ReadFully(reinterpret_cast<uint64_t>(src) + pagesize - 4, dst.data(), 8)); in TEST() 170 ASSERT_FALSE(remote.ReadFully(UINT64_MAX - 100, dst.data(), 200)); in TEST() 193 ASSERT_FALSE(remote.ReadFully(UINT64_MAX - 100, dst.data(), 200)); in TEST() 212 ASSERT_FALSE(remote.ReadFully(0, dst.data(), 1)); in TEST() 213 ASSERT_FALSE(remote.ReadFully(0, dst.data(), 100)); in TEST()
|
D | MapInfoCreateMemoryTest.cpp | 121 ASSERT_TRUE(memory->ReadFully(0, buffer.data(), 1024)); in TEST_F() 128 ASSERT_FALSE(memory->ReadFully(1024, buffer.data(), 1)); in TEST_F() 191 ASSERT_TRUE(memory->ReadFully(0, buffer.data(), 0x100)); in TEST_F() 198 ASSERT_FALSE(memory->ReadFully(0x100, buffer.data(), 1)); in TEST_F() 216 ASSERT_TRUE(memory->ReadFully(0, e_ident, SELFMAG)); in TEST_F() 220 ASSERT_TRUE(memory->ReadFully(0x1000, e_ident, 1)); in TEST_F() 234 ASSERT_TRUE(memory->ReadFully(0, e_ident, SELFMAG)); in TEST_F() 238 ASSERT_TRUE(memory->ReadFully(0x1000, e_ident, 1)); in TEST_F() 273 ASSERT_TRUE(memory->ReadFully(0, buffer.data(), buffer.size())); in TEST_F() 280 ASSERT_FALSE(memory->ReadFully(buffer.size(), buffer.data(), 1)); in TEST_F() [all …]
|
D | MapInfoGetElfTest.cpp | 204 ASSERT_TRUE(elf->memory()->ReadFully(0, buffer.data(), buffer.size())); in TEST_F() 210 ASSERT_FALSE(elf->memory()->ReadFully(buffer.size(), buffer.data(), 1)); in TEST_F() 232 ASSERT_TRUE(elf->memory()->ReadFully(0, buffer.data(), 0x1000)); in TEST_F() 238 ASSERT_FALSE(elf->memory()->ReadFully(0x1000, buffer.data(), 1)); in TEST_F() 266 ASSERT_TRUE(elf->memory()->ReadFully(0, buffer.data(), 0x1000)); in TEST_F() 270 ASSERT_TRUE(elf->memory()->ReadFully(0x1000, buffer.data(), 1)); in TEST_F() 294 ASSERT_TRUE(elf->memory()->ReadFully(0, buffer.data(), 0x1000)); in TEST_F() 298 ASSERT_TRUE(elf->memory()->ReadFully(0x1000, buffer.data(), 1)); in TEST_F()
|
/system/unwinding/libunwindstack/ |
D | ElfInterface.cpp | 139 if (!memory_->ReadFully(0, &ehdr, sizeof(ehdr))) { in ReadAllHeaders() 155 if (!memory->ReadFully(0, &ehdr, sizeof(ehdr))) { in GetLoadBias() 162 if (!memory->ReadFully(offset, &phdr, sizeof(phdr))) { in GetLoadBias() 180 if (!memory_->ReadFully(offset, &phdr, sizeof(phdr))) { in ReadProgramHeaders() 239 if (!memory_->ReadFully(gnu_build_id_offset_ + offset, &hdr, sizeof(hdr))) { in ReadBuildID() 249 if (!memory_->ReadFully(gnu_build_id_offset_ + offset, &(name[0]), hdr.n_namesz)) { in ReadBuildID() 265 if (memory_->ReadFully(gnu_build_id_offset_ + offset, &build_id[0], hdr.n_descsz)) { in ReadBuildID() 288 if (memory_->ReadFully(sh_offset, &shdr, sizeof(shdr))) { in ReadSectionHeaders() 297 if (!memory_->ReadFully(offset, &shdr, sizeof(shdr))) { in ReadSectionHeaders() 309 if (!memory_->ReadFully(str_offset, &str_shdr, sizeof(str_shdr))) { in ReadSectionHeaders() [all …]
|
D | RegsArm.cpp | 104 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler() 124 if (!process_memory->ReadFully(sp, &data, sizeof(data))) { in StepIfSignalHandler() 149 if (!process_memory->ReadFully(sp, &data, sizeof(data))) { in StepIfSignalHandler() 164 if (!process_memory->ReadFully(offset, regs_.data(), sizeof(uint32_t) * ARM_REG_LAST)) { in StepIfSignalHandler()
|
D | RegsX86.cpp | 56 if (!process_memory->ReadFully(regs_[X86_REG_SP], &new_pc, sizeof(new_pc)) || in SetPcFromReturnAddress() 120 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler() 136 if (!process_memory->ReadFully(regs_[X86_REG_SP] + 4, &context, sizeof(context))) { in StepIfSignalHandler() 161 if (!process_memory->ReadFully(regs_[X86_REG_SP] + 8, &ptr, sizeof(ptr))) { in StepIfSignalHandler() 166 if (!process_memory->ReadFully(ptr + 0x14, &x86_ucontext.uc_mcontext, sizeof(x86_mcontext_t))) { in StepIfSignalHandler()
|
D | RegsX86_64.cpp | 57 if (!process_memory->ReadFully(regs_[X86_64_REG_SP], &new_pc, sizeof(new_pc)) || in SetPcFromReturnAddress() 140 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data)) || data != 0x0f0000000fc0c748) { in StepIfSignalHandler() 145 if (!elf_memory->ReadFully(elf_offset + 8, &data2, sizeof(data2)) || data2 != 0x05) { in StepIfSignalHandler() 156 if (!process_memory->ReadFully(regs_[X86_64_REG_SP] + 0x28, &x86_64_ucontext.uc_mcontext, in StepIfSignalHandler()
|
D | Elf.cpp | 212 if (!memory->ReadFully(0, e_ident, SELFMAG)) { in IsValidElf() 229 if (!memory->ReadFully(EI_CLASS, &class_type, 1)) { in GetInfo() 284 if (!memory->ReadFully(EI_CLASS, &class_type_, 1)) { in CreateInterfaceFromMemory() 289 if (!memory->ReadFully(EI_NIDENT + sizeof(Elf32_Half), &e_machine, sizeof(e_machine))) { in CreateInterfaceFromMemory() 310 if (!memory->ReadFully(EI_NIDENT + sizeof(Elf64_Half), &e_machine, sizeof(e_machine))) { in CreateInterfaceFromMemory()
|
D | GlobalDebugImpl.h | 101 if (!this->memory_->ReadFully(addr, &desc, kSizeOfDescriptorV2)) { in ReadDescriptor() 104 if (!this->memory_->ReadFully(addr, &desc, kSizeOfDescriptorV1)) { in ReadDescriptor() 251 if (!memory_->ReadFully(uid.address, &data, jit_entry_size_)) { in ReadNewEntries() 310 if (!(memory_->ReadFully(next_field_addr, &address[i], sizeof(address[i])))) { in ReadNextField() 321 if (!memory_->ReadFully(address[i] + seqlock_offset_, &seqlock[i], sizeof(seqlock[i]))) { in ReadNextField()
|
D | JitDebug.cpp | 30 if (!copy->Resize(size) || !memory->ReadFully(addr, copy->GetPtr(0), size)) { in Load()
|
D | Symbols.cpp | 70 if (!elf_memory->ReadFully(offset_ + symbol_index * entry_size_, &sym, sizeof(sym))) { in BinarySearch() 149 if (!elf_memory->ReadFully(offset_ + symbol_index * entry_size_, &sym, sizeof(sym))) { in GetName() 181 if (!elf_memory->ReadFully(offset_ + i * entry_size_, &entry, sizeof(entry))) { in GetGlobal()
|
D | RegsMips.cpp | 130 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler() 155 if (!process_memory->ReadFully(regs_[MIPS_REG_SP] + offset, values, sizeof(values))) { in StepIfSignalHandler()
|
/system/unwinding/libunwindstack/include/unwindstack/ |
D | Memory.h | 56 bool ReadFully(uint64_t addr, void* dst, size_t size); 59 return ReadFully(addr, dst, sizeof(uint32_t)); in Read32() 63 return ReadFully(addr, dst, sizeof(uint64_t)); in Read64()
|
/system/core/fs_mgr/liblp/ |
D | reader.cpp | 41 virtual bool ReadFully(void* buffer, size_t length) = 0; 47 bool ReadFully(void* buffer, size_t length) override { in ReadFully() function in android::fs_mgr::FileReader 48 return android::base::ReadFully(fd_, buffer, length); in ReadFully() 59 bool ReadFully(void* out, size_t length) override { in ReadFully() function in android::fs_mgr::MemoryReader 124 if (!android::base::ReadFully(fd, buffer.get(), LP_METADATA_GEOMETRY_SIZE)) { in ReadPrimaryGeometry() 137 if (!android::base::ReadFully(fd, buffer.get(), LP_METADATA_GEOMETRY_SIZE)) { in ReadBackupGeometry() 172 if (!reader->ReadFully(&header, sizeof(LpMetadataHeaderV1_0))) { in ReadMetadataHeader() 201 if (!reader->ReadFully(offset, remaining_bytes)) { in ReadMetadataHeader() 271 if (!reader->ReadFully(buffer.get(), header.tables_size)) { in ParseMetadata()
|
/system/libbase/ |
D | abi_compatibility.cpp | 52 bool ReadFully(int fd, void* data, size_t byte_count) { in ReadFully() function 53 return ReadFully(borrowed_fd(fd), data, byte_count); in ReadFully()
|
/system/apex/apexd/ |
D | apexd_verity.cpp | 35 using android::base::ReadFully; 93 if (!ReadFully(fd, buf.data(), block_size)) { in GenerateHashTree() 131 if (!ReadFully(fd.get(), root_verity.data(), block_size)) { in CalculateRootDigest()
|
/system/core/fs_mgr/libsnapshot/ |
D | make_cow_from_ab_ota.cpp | 350 if (!android::base::ReadFully(source_image, src.get() + src_pos, size)) { in ProcessDiff() 364 if (!android::base::ReadFully(in_fd_, patch.get(), op.data_length())) { in ProcessDiff() 530 if (!android::base::ReadFully(in_fd_, buffer.get(), buffer_size)) { in ProcessReplace() 620 if (!android::base::ReadFully(in_fd_, magic, sizeof(magic))) { in OpenPayload() 632 if (!android::base::ReadFully(in_fd_, &version, sizeof(version))) { in OpenPayload() 642 if (!android::base::ReadFully(in_fd_, &manifest_size, sizeof(manifest_size))) { in OpenPayload() 647 if (!android::base::ReadFully(in_fd_, &manifest_signature_size, in OpenPayload() 655 if (!android::base::ReadFully(in_fd_, manifest.get(), manifest_size)) { in OpenPayload()
|
/system/core/fs_mgr/libdm/ |
D | loop_control_test.cpp | 62 ASSERT_TRUE(android::base::ReadFully(loop_fd, buffer, sizeof(buffer))); in TEST()
|