Searched refs:Read (Results 1 - 25 of 99) sorted by relevance

1234

/system/tpm/tpm_manager/server/
H A Dlocal_data_store.h34 virtual bool Read(LocalData* data) = 0;
H A Dlocal_data_store_impl.h34 bool Read(LocalData* data) override;
H A Dmock_local_data_store.h31 MOCK_METHOD1(Read, bool(LocalData*));
H A Dmock_local_data_store.cc29 ON_CALL(*this, Read(_))
/system/core/libunwindstack/
H A DElfInterface.cpp30 if (!memory_->Read(0, &ehdr, sizeof(ehdr))) {
45 if (!memory_->Read(offset, &phdr, &phdr.p_type, sizeof(phdr.p_type))) {
57 if (!memory_->Read(offset, &phdr, &phdr.p_flags, sizeof(phdr.p_flags))) {
64 if (!memory_->Read(offset, &phdr, &phdr.p_vaddr, sizeof(phdr.p_vaddr))) {
67 if (!memory_->Read(offset, &phdr, &phdr.p_offset, sizeof(phdr.p_offset))) {
70 if (!memory_->Read(offset, &phdr, &phdr.p_memsz, sizeof(phdr.p_memsz))) {
82 if (!memory_->Read(offset, &phdr, &phdr.p_offset, sizeof(phdr.p_offset))) {
86 if (!memory_->Read(offset, &phdr, &phdr.p_memsz, sizeof(phdr.p_memsz))) {
93 if (!memory_->Read(offset, &phdr, &phdr.p_offset, sizeof(phdr.p_offset))) {
97 if (!memory_->Read(offse
[all...]
H A DMemory.h34 virtual bool Read(uint64_t addr, void* dst, size_t size) = 0;
36 inline bool Read(uint64_t addr, void* start, void* field, size_t size) { function in class:Memory
37 return Read(addr + reinterpret_cast<uintptr_t>(field) - reinterpret_cast<uintptr_t>(start),
42 return Read(addr, dst, sizeof(uint32_t));
46 return Read(addr, dst, sizeof(uint64_t));
55 bool Read(uint64_t addr, void* dst, size_t size) override;
74 bool Read(uint64_t addr, void* dst, size_t size) override;
91 bool Read(uint64_t addr, void* dst, size_t size) override;
102 bool Read(uint64_t addr, void* dst, size_t size) override;
115 bool Read(uint64_
[all...]
H A DElf.cpp59 if (!memory->Read(0, e_ident, SELFMAG)) {
75 if (!memory->Read(EI_CLASS, &class_type_, 1)) {
80 if (!memory->Read(EI_NIDENT + sizeof(Elf32_Half), &e_machine, sizeof(e_machine))) {
98 if (!memory->Read(EI_NIDENT + sizeof(Elf64_Half), &e_machine, sizeof(e_machine))) {
H A DMemory.cpp38 if (!Read(addr, &value, sizeof(value))) {
51 bool MemoryBuffer::Read(uint64_t addr, void* dst, size_t size) { function in class:MemoryBuffer
115 bool MemoryFileAtOffset::Read(uint64_t addr, void* dst, size_t size) { function in class:MemoryFileAtOffset
140 bool MemoryRemote::Read(uint64_t addr, void* dst, size_t bytes) { function in class:MemoryRemote
177 bool MemoryLocal::Read(uint64_t addr, void* dst, size_t size) { function in class:MemoryLocal
202 if (!MemoryFileAtOffset::Read(0, &start_, sizeof(start_))) {
210 bool MemoryOffline::Read(uint64_t addr, void* dst, size_t size) { function in class:MemoryOffline
/system/core/fastboot/
H A Dtransport.h31 virtual ssize_t Read(void* data, size_t len) = 0;
H A Dtcp_test.cpp115 bool Read(const std::string& message) { function in class:TcpTest
117 return transport_->Read(&buffer[0], buffer.length()) ==
138 EXPECT_TRUE(Read("foo"));
149 EXPECT_TRUE(Read("foo"));
172 EXPECT_TRUE(Read(data));
190 EXPECT_TRUE(Read("OKAY0.4"));
193 EXPECT_TRUE(Read("INFOversion: 0.4"));
194 EXPECT_TRUE(Read("INFOfoo: bar"));
195 EXPECT_TRUE(Read("OKAY"));
202 EXPECT_EQ(-1, transport_->Read(buffe
[all...]
/system/update_engine/common/
H A Dhwid_override.h34 // Read HWID from an /etc/lsb-release file under given root.
36 static std::string Read(const base::FilePath& root);
H A Dhwid_override_unittest.cc52 EXPECT_EQ(expected_hwid, HwidOverride::Read(tempdir_.path()));
60 EXPECT_EQ(std::string(), HwidOverride::Read(tempdir_.path()));
64 EXPECT_EQ(std::string(), HwidOverride::Read(tempdir_.path()));
H A Dhwid_override.cc37 string HwidOverride::Read(const base::FilePath& root) { function in class:chromeos_update_engine::HwidOverride
/system/core/adb/
H A Dshell_service_protocol_test.cpp108 ASSERT_TRUE(read_protocol_->Read());
120 ASSERT_TRUE(read_protocol_->Read());
122 ASSERT_TRUE(read_protocol_->Read());
124 ASSERT_TRUE(read_protocol_->Read());
133 ASSERT_TRUE(read_protocol_->Read());
143 ASSERT_TRUE(read_protocol_->Read());
169 ASSERT_FALSE(read_protocol_->Read());
177 ASSERT_FALSE(read_protocol_->Read());
193 ASSERT_TRUE(read_protocol_->Read());
197 ASSERT_FALSE(read_protocol_->Read());
[all...]
/system/core/debuggerd/libdebuggerd/
H A Delf_utils.cpp42 if (backtrace->Read(base_addr + EI_NIDENT, reinterpret_cast<uint8_t*>(&hdr) + EI_NIDENT,
49 if (backtrace->Read(base_addr + hdr.e_phoff + i * hdr.e_phentsize,
59 if (backtrace->Read(addr, reinterpret_cast<uint8_t*>(&nhdr), sizeof(nhdr)) != sizeof(nhdr)) {
72 if (backtrace->Read(addr, build_id_data, nhdr.n_descsz) != nhdr.n_descsz) {
99 // Read and verify the elf magic number first.
101 if (backtrace->Read(addr, e_ident, SELFMAG) != SELFMAG) {
109 // Read the rest of EI_NIDENT.
110 if (backtrace->Read(addr + SELFMAG, e_ident + SELFMAG, EI_NIDENT - SELFMAG) != EI_NIDENT - SELFMAG) {
/system/core/libunwindstack/tests/
H A DMemoryLocalTest.cpp33 ASSERT_TRUE(local.Read(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024));
40 ASSERT_TRUE(local.Read(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024));
73 ASSERT_FALSE(local.Read(0, dst.data(), 1));
74 ASSERT_FALSE(local.Read(0, dst.data(), 100));
H A DMemoryFileTest.cpp47 ASSERT_TRUE(memory_.Read(0, buffer.data(), 10));
57 ASSERT_TRUE(memory_.Read(0, buffer.data(), 10));
73 ASSERT_TRUE(memory_.Read(0, buffer.data(), 8));
89 ASSERT_TRUE(memory_.Read(0, buffer.data(), 10));
110 ASSERT_TRUE(memory_.Read(0, buffer.data(), 10));
129 // Read before init.
130 ASSERT_FALSE(memory_.Read(0, buffer.data(), 10));
134 ASSERT_FALSE(memory_.Read(10000, buffer.data(), 10));
135 ASSERT_FALSE(memory_.Read(5000, buffer.data(), 10));
136 ASSERT_FALSE(memory_.Read(499
[all...]
H A DMemoryRangeTest.cpp45 ASSERT_TRUE(range.Read(0, dst.data(), src.size()));
59 ASSERT_TRUE(range.Read(1020, dst.data(), 4));
65 ASSERT_FALSE(range.Read(1020, dst.data(), 5));
66 ASSERT_FALSE(range.Read(1024, dst.data(), 1));
67 ASSERT_FALSE(range.Read(1024, dst.data(), 1024));
H A DMemoryRemoteTest.cpp84 ASSERT_TRUE(remote.Read(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024));
115 ASSERT_TRUE(remote.Read(reinterpret_cast<uint64_t>(src), dst.data(), pagesize));
120 ASSERT_FALSE(remote.Read(reinterpret_cast<uint64_t>(src) + pagesize, dst.data(), 1));
121 ASSERT_TRUE(remote.Read(reinterpret_cast<uint64_t>(src) + pagesize - 1, dst.data(), 1));
122 ASSERT_FALSE(remote.Read(reinterpret_cast<uint64_t>(src) + pagesize - 4, dst.data(), 8));
144 ASSERT_FALSE(remote.Read(0, dst.data(), 1));
145 ASSERT_FALSE(remote.Read(0, dst.data(), 100));
H A DMemoryFake.h33 bool Read(uint64_t addr, void* buffer, size_t size) override;
72 bool Read(uint64_t, void* buffer, size_t size) override {
/system/core/include/ziparchive/
H A Dzip_archive_stream_entry.h17 // Read-only stream access to Zip archives entries.
29 virtual const std::vector<uint8_t>* Read() = 0;
/system/core/libbacktrace/
H A DBacktracePtrace.h32 size_t Read(uintptr_t addr, uint8_t* buffer, size_t bytes);
/system/tpm/attestation/server/
H A Dmock_key_store.cc25 ON_CALL(*this, Read(_, _, _)).WillByDefault(Return(true));
H A Dpkcs11_key_store_test.cc312 EXPECT_FALSE(key_store.Read(kDefaultUser, "test", &blob));
314 EXPECT_FALSE(key_store.Read("", "test", &blob));
323 EXPECT_FALSE(key_store.Read(kDefaultUser, "test", &blob));
325 EXPECT_TRUE(key_store.Read(kDefaultUser, "test", &blob));
328 EXPECT_FALSE(key_store.Read(kDefaultUser, "test2", &blob));
330 EXPECT_TRUE(key_store.Read(kDefaultUser, "test2", &blob));
332 // Read the original key again.
333 EXPECT_TRUE(key_store.Read(kDefaultUser, "test", &blob));
337 EXPECT_TRUE(key_store.Read(kDefaultUser, "test", &blob));
341 EXPECT_FALSE(key_store.Read(kDefaultUse
[all...]
H A Ddatabase_impl.h36 virtual bool Read(std::string* data) = 0;
62 bool Read(std::string* data) override;

Completed in 365 milliseconds

1234