/system/core/libbacktrace/testdata/arm64/ |
D | offline_testdata | 2 map: start: 557066e000 end: 55706ee000 offset: 0 load_bias: 0 flags: 5 name: /data/backtrace_test64 3 map: start: 55706ef000 end: 55706f2000 offset: 80000 load_bias: 0 flags: 1 name: /data/backtrace_te… 4 map: start: 55706f2000 end: 55706f3000 offset: 83000 load_bias: 0 flags: 3 name: /data/backtrace_te… 5 map: start: 7014200000 end: 7014600000 offset: 0 load_bias: 0 flags: 3 name: [anon:libc_malloc] 6 map: start: 701464c000 end: 701465c000 offset: 0 load_bias: 0 flags: 5 name: /system/lib64/libcutil… 7 map: start: 701465c000 end: 701465d000 offset: 0 load_bias: 0 flags: 0 name: 8 map: start: 701465d000 end: 701465e000 offset: 10000 load_bias: 0 flags: 1 name: /system/lib64/libc… 9 map: start: 701465e000 end: 701465f000 offset: 11000 load_bias: 0 flags: 3 name: /system/lib64/libc… 10 map: start: 7014691000 end: 70146b5000 offset: 0 load_bias: 0 flags: 5 name: /system/lib64/liblzma.… 11 map: start: 70146b5000 end: 70146b6000 offset: 23000 load_bias: 0 flags: 1 name: /system/lib64/libl… [all …]
|
/system/core/libbacktrace/testdata/arm/ |
D | offline_testdata | 2 map: start: aad19000 end: aad6c000 offset: 0 load_bias: 0 flags: 5 name: /data/backtrace_test32 3 map: start: aad6c000 end: aad6e000 offset: 52000 load_bias: 0 flags: 1 name: /data/backtrace_test32 4 map: start: aad6e000 end: aad6f000 offset: 54000 load_bias: 0 flags: 3 name: /data/backtrace_test32 5 map: start: e7380000 end: e7400000 offset: 0 load_bias: 0 flags: 3 name: [anon:libc_malloc] 6 map: start: e745f000 end: e7463000 offset: 0 load_bias: 0 flags: 5 name: /system/lib/libnetd_client… 7 map: start: e7463000 end: e7464000 offset: 3000 load_bias: 0 flags: 1 name: /system/lib/libnetd_cli… 8 map: start: e7464000 end: e7465000 offset: 4000 load_bias: 0 flags: 3 name: /system/lib/libnetd_cli… 9 map: start: e7480000 end: e7500000 offset: 0 load_bias: 0 flags: 3 name: [anon:libc_malloc] 10 map: start: e7558000 end: e756c000 offset: 0 load_bias: 0 flags: 5 name: /system/lib/libunwind.so 11 map: start: e756c000 end: e756d000 offset: 0 load_bias: 0 flags: 0 name: [all …]
|
/system/extras/libfec/ |
D | fec_read.cpp | 50 ptrdiff_t offset = &hex[m * 3] - hex; in dump() local 51 snprintf(hex + offset, sizeof(hex) - offset, "%02x ", in dump() 69 static inline bool is_erasure(fec_handle *f, uint64_t offset, in is_erasure() argument 72 if (unlikely(offset >= f->data_size)) { in is_erasure() 80 uint64_t n = offset / FEC_BLOCKSIZE; in is_erasure() 86 static inline bool is_zero(fec_handle *f, uint64_t offset) in is_zero() argument 90 if (hashtree.hash_data.empty() || unlikely(offset >= f->data_size)) { in is_zero() 94 uint64_t hash_offset = (offset / FEC_BLOCKSIZE) * SHA256_DIGEST_LENGTH; in is_zero() 107 static int __ecc_read(fec_handle *f, void *rs, uint8_t *dest, uint64_t offset, in __ecc_read() argument 110 check(offset % FEC_BLOCKSIZE == 0); in __ecc_read() [all …]
|
D | fec_open.cpp | 42 static int find_offset(uint64_t file_size, int roots, uint64_t *offset, in find_offset() argument 45 check(offset); in find_offset() 69 *offset = mi; in find_offset() 89 static int find_verity_offset(fec_handle *f, uint64_t *offset) in find_verity_offset() argument 92 check(offset); in find_verity_offset() 94 return find_offset(f->data_size, 0, offset, get_verity_size, in find_verity_offset() 99 static int parse_ecc_header(fec_handle *f, uint64_t offset) in parse_ecc_header() argument 105 debug("offset = %" PRIu64, offset); in parse_ecc_header() 107 if (offset > f->size - sizeof(fec_header)) { in parse_ecc_header() 115 if (!raw_pread(f->fd, &header, sizeof(fec_header), offset)) { in parse_ecc_header() [all …]
|
/system/core/property_service/libpropertyinfoserializer/ |
D | trie_node_arena.h | 29 ArenaObjectPointer(std::string& arena_data, uint32_t offset) in ArenaObjectPointer() argument 30 : arena_data_(arena_data), offset_(offset) {} in ArenaObjectPointer() 48 uint32_t offset; in AllocateObject() local 49 AllocateData(sizeof(T), &offset); in AllocateObject() 50 if (return_offset) *return_offset = offset; in AllocateObject() 51 return ArenaObjectPointer<T>(data_, offset); in AllocateObject() 55 uint32_t offset; in AllocateUint32Array() local 56 AllocateData(sizeof(uint32_t) * length, &offset); in AllocateUint32Array() 57 return offset; in AllocateUint32Array() 60 uint32_t* uint32_array(uint32_t offset) { in uint32_array() argument [all …]
|
/system/bt/tools/scripts/ |
D | btsnooz.py | 94 offset = 0 95 while offset < len(decompressed): 96 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset) 97 offset += 7 + length - 1 101 offset = 0 102 while offset < len(decompressed): 103 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset) 105 offset += 7 110 sys.stdout.write(decompressed[offset:offset + length - 1]) 111 offset += length - 1 [all …]
|
/system/chre/util/nanoapp/ |
D | debug.cc | 34 size_t offset = 0; in logBuffer() local 48 offset += static_cast<size_t>( in logBuffer() 49 snprintf(&line[offset], sizeof(line) - offset, "%02x ", buffer[i - 1])); in logBuffer() 55 offset = 0; in logBuffer() 58 offset += static_cast<size_t>( in logBuffer() 59 snprintf(&line[offset], sizeof(line) - offset, " ")); in logBuffer() 63 if (offset > 0) { in logBuffer() 66 while (offset < 28) { in logBuffer() 68 offset += 8; in logBuffer()
|
/system/core/libbacktrace/testdata/x86_64/ |
D | offline_testdata | 2 map: start: 7fd5aa784000 end: 7fd5aa93e000 offset: 0 load_bias: 0 flags: 5 name: /lib/x86_64-linux-… 3 map: start: 7fd5aa93e000 end: 7fd5aab3e000 offset: 1ba000 load_bias: 0 flags: 0 name: /lib/x86_64-l… 4 map: start: 7fd5aab3e000 end: 7fd5aab42000 offset: 1ba000 load_bias: 0 flags: 1 name: /lib/x86_64-l… 5 map: start: 7fd5aab42000 end: 7fd5aab44000 offset: 1be000 load_bias: 0 flags: 3 name: /lib/x86_64-l… 6 map: start: 7fd5aab44000 end: 7fd5aab49000 offset: 0 load_bias: 0 flags: 3 name: 7 map: start: 7fd5aab49000 end: 7fd5aac4e000 offset: 0 load_bias: 0 flags: 5 name: /lib/x86_64-linux-… 8 map: start: 7fd5aac4e000 end: 7fd5aae4d000 offset: 105000 load_bias: 0 flags: 0 name: /lib/x86_64-l… 9 map: start: 7fd5aae4d000 end: 7fd5aae4e000 offset: 104000 load_bias: 0 flags: 1 name: /lib/x86_64-l… 10 map: start: 7fd5aae4e000 end: 7fd5aae4f000 offset: 105000 load_bias: 0 flags: 3 name: /lib/x86_64-l… 11 map: start: 7fd5aae4f000 end: 7fd5aae65000 offset: 0 load_bias: 0 flags: 5 name: /lib/x86_64-linux-… [all …]
|
/system/core/libbacktrace/testdata/x86/ |
D | offline_testdata | 2 map: start: f705a000 end: f705c000 offset: 0 load_bias: 0 flags: 3 name: 3 map: start: f705c000 end: f707f000 offset: 0 load_bias: 0 flags: 5 name: /ssd/android/aosp_master/o… 4 map: start: f707f000 end: f7080000 offset: 22000 load_bias: 0 flags: 1 name: /ssd/android/aosp_mast… 5 map: start: f7080000 end: f7081000 offset: 23000 load_bias: 0 flags: 3 name: /ssd/android/aosp_mast… 6 map: start: f7081000 end: f7088000 offset: 0 load_bias: 0 flags: 3 name: 7 map: start: f7088000 end: f7230000 offset: 0 load_bias: 0 flags: 5 name: /lib/i386-linux-gnu/libc-2… 8 map: start: f7230000 end: f7231000 offset: 1a8000 load_bias: 0 flags: 0 name: /lib/i386-linux-gnu/l… 9 map: start: f7231000 end: f7233000 offset: 1a8000 load_bias: 0 flags: 1 name: /lib/i386-linux-gnu/l… 10 map: start: f7233000 end: f7234000 offset: 1aa000 load_bias: 0 flags: 3 name: /lib/i386-linux-gnu/l… 11 map: start: f7234000 end: f7237000 offset: 0 load_bias: 0 flags: 3 name: [all …]
|
/system/core/libunwindstack/tests/ |
D | ElfFake.h | 43 FunctionData(std::string name, uint64_t offset) : name(name), offset(offset) {} in FunctionData() 46 uint64_t offset; member 81 void FakeSetGlobalVariable(const std::string& global, uint64_t offset) { in FakeSetGlobalVariable() argument 82 globals_[global] = offset; in FakeSetGlobalVariable() 102 void FakeSetDataOffset(uint64_t offset) { data_offset_ = offset; } in FakeSetDataOffset() argument 106 void FakeSetDynamicOffset(uint64_t offset) { dynamic_offset_ = offset; } in FakeSetDynamicOffset() argument 110 void FakeSetGnuDebugdataOffset(uint64_t offset) { gnu_debugdata_offset_ = offset; } in FakeSetGnuDebugdataOffset() argument 127 void FakeSetEhFrameOffset(uint64_t offset) { eh_frame_offset_ = offset; } in FakeSetEhFrameOffset() argument 129 void FakeSetDebugFrameOffset(uint64_t offset) { debug_frame_offset_ = offset; } in FakeSetDebugFrameOffset() argument 138 void FakeSetEhFrameOffset(uint64_t offset) { eh_frame_offset_ = offset; } in FakeSetEhFrameOffset() argument [all …]
|
D | SymbolsTest.cpp | 65 uint64_t offset = 0x1000; in TYPED_TEST_P() local 66 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 92 uint64_t offset = 0x1000; in TYPED_TEST_P() local 93 this->memory_.SetMemory(offset, &sym, sizeof(sym)); 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() 125 uint64_t offset = 0x1000; in TYPED_TEST_P() local 129 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() 132 offset += sizeof(sym); in TYPED_TEST_P() 135 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P() [all …]
|
D | MemoryOfflineTest.cpp | 34 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, &offset, sizeof(offset))); in SetUp() 44 uint64_t offset = 4096; member in unwindstack::MemoryOfflineTest 51 ASSERT_EQ(0U, memory->Read(offset - 1, &buf, 1)); in TEST_F() 52 ASSERT_EQ(0U, memory->Read(offset + data.size(), &buf, 1)); in TEST_F() 53 ASSERT_EQ(1U, memory->Read(offset, &buf, 1)); in TEST_F() 55 ASSERT_EQ(1U, memory->Read(offset + data.size() - 1, &buf, 1)); in TEST_F() 62 ASSERT_EQ(data.size(), memory->Read(offset, buf.data(), buf.size())); in TEST_F()
|
/system/extras/ioshark/ |
D | ioshark_bench_mmap.c | 47 off_t offset; member 59 size_t total_len, off_t offset) in setup_mmap_io_state() argument 69 mio->table[mio->num_entries].offset = offset; in setup_mmap_io_state() 73 offset += mio->table[mio->num_entries].len; in setup_mmap_io_state() 80 off_t *offset) in mmap_getnext_off_len() argument 98 *offset = mio->table[i].offset; in mmap_getnext_off_len() 99 mio->table[i].offset += iolength; in mmap_getnext_off_len() 106 mmap_do_io(void *db_node, int prot, off_t offset, size_t len, in mmap_do_io() argument 117 p, len, offset); in mmap_do_io() 123 len, offset, files_db_get_fd(db_node), in mmap_do_io() [all …]
|
/system/core/libunwindstack/ |
D | MapInfo.cpp | 45 if (!memory->Init(name, prev_real_map->offset, map_size)) { in InitFileMemoryFromPreviousReadOnlyMap() 54 if (!memory->Init(name, prev_real_map->offset, max_size)) { in InitFileMemoryFromPreviousReadOnlyMap() 58 elf_offset = offset - prev_real_map->offset; in InitFileMemoryFromPreviousReadOnlyMap() 59 elf_start_offset = prev_real_map->offset; in InitFileMemoryFromPreviousReadOnlyMap() 65 if (offset == 0) { in GetFileMemory() 87 if (!memory->Init(name, offset, map_size)) { in GetFileMemory() 94 elf_start_offset = offset; in GetFileMemory() 96 if (memory->Init(name, offset, max_size)) { in GetFileMemory() 100 if (memory->Init(name, offset, map_size)) { in GetFileMemory() 111 elf_offset = offset; in GetFileMemory() [all …]
|
D | ElfInterface.cpp | 211 uint64_t offset = ehdr.e_phoff; in GetLoadBias() local 212 for (size_t i = 0; i < ehdr.e_phnum; i++, offset += ehdr.e_phentsize) { in GetLoadBias() 214 if (!memory->ReadFully(offset, &phdr, sizeof(phdr))) { in GetLoadBias() 228 uint64_t offset = ehdr.e_phoff; in ReadProgramHeaders() local 230 for (size_t i = 0; i < ehdr.e_phnum; i++, offset += ehdr.e_phentsize) { in ReadProgramHeaders() 232 if (!memory_->ReadFully(offset, &phdr, sizeof(phdr))) { in ReadProgramHeaders() 285 uint64_t offset = 0; in ReadBuildID() local 286 while (offset < gnu_build_id_size_) { in ReadBuildID() 287 if (gnu_build_id_size_ - offset < sizeof(NhdrType)) { in ReadBuildID() 291 if (!memory_->ReadFully(gnu_build_id_offset_ + offset, &hdr, sizeof(hdr))) { in ReadBuildID() [all …]
|
/system/core/fs_mgr/libvbmeta/ |
D | writer.cpp | 45 const uint64_t offset = PRIMARY_SUPER_VBMETA_TABLE_OFFSET; in WritePrimaryVBMetaTable() local 46 if (lseek(fd, offset, SEEK_SET) < 0) { in WritePrimaryVBMetaTable() 51 return ErrnoError() << "Failed to write primary vbmeta table at offset " << offset; in WritePrimaryVBMetaTable() 57 const uint64_t offset = BACKUP_SUPER_VBMETA_TABLE_OFFSET; in WriteBackupVBMetaTable() local 58 if (lseek(fd, offset, SEEK_SET) < 0) { in WriteBackupVBMetaTable() 63 return ErrnoError() << "Failed to write backup vbmeta table at offset " << offset; in WriteBackupVBMetaTable() 69 const uint64_t offset = IndexOffset(slot_number); in WriteVBMetaImage() local 70 if (lseek(fd, offset, SEEK_SET) < 0) { in WriteVBMetaImage() 75 return ErrnoError() << "Failed to write vbmeta image at offset " << offset; in WriteVBMetaImage()
|
D | reader.cpp | 58 Result<void> ReadVBMetaTable(int fd, uint64_t offset, VBMetaTable* table) { in ReadVBMetaTable() argument 62 offset)) { in ReadVBMetaTable() 63 return ErrnoError() << "Couldn't read super vbmeta header at offset " << offset; in ReadVBMetaTable() 71 const uint64_t descriptors_offset = offset + table->header.header_size; in ReadVBMetaTable() 86 uint64_t offset = PRIMARY_SUPER_VBMETA_TABLE_OFFSET; in ReadPrimaryVBMetaTable() local 87 return ReadVBMetaTable(fd, offset, table); in ReadPrimaryVBMetaTable() 91 uint64_t offset = BACKUP_SUPER_VBMETA_TABLE_OFFSET; in ReadBackupVBMetaTable() local 92 return ReadVBMetaTable(fd, offset, table); in ReadBackupVBMetaTable() 96 const uint64_t offset = 2 * SUPER_VBMETA_TABLE_MAX_SIZE + slot * VBMETA_IMAGE_MAX_SIZE; in ReadVBMetaImage() local 98 if (!android::base::ReadFullyAtOffset(fd, buffer.get(), VBMETA_IMAGE_MAX_SIZE, offset)) { in ReadVBMetaImage() [all …]
|
/system/core/libutils/include/utils/ |
D | Compat.h | 32 static inline void* mmap64(void* addr, size_t length, int prot, int flags, int fd, off64_t offset) { in mmap64() argument 33 return mmap(addr, length, prot, flags, fd, offset); in mmap64() 36 static inline off64_t lseek64(int fd, off64_t offset, int whence) { in lseek64() argument 37 return lseek(fd, offset, whence); in lseek64() 40 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { in pread64() argument 41 return pread(fd, buf, nbytes, offset); in pread64() 44 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { in pwrite64() argument 45 return pwrite(fd, buf, nbytes, offset); in pwrite64()
|
/system/bt/packet/base/ |
D | iterator.cc | 35 Iterator Iterator::operator+(size_t offset) { in operator +() argument 38 return itr += offset; in operator +() 41 Iterator& Iterator::operator+=(size_t offset) { in operator +=() argument 42 size_t new_offset = index_ + offset; in operator +=() 65 Iterator Iterator::operator-(size_t offset) { in operator -() argument 68 return itr -= offset; in operator -() 73 Iterator& Iterator::operator-=(size_t offset) { in operator -=() argument 74 index_ = (index_ < offset || index_ - offset < packet_->packet_start_index_) in operator -=() 76 : index_ - offset; in operator -=()
|
/system/core/libunwindstack/include/unwindstack/ |
D | DwarfMemory.h | 52 void set_pc_offset(int64_t offset) { pc_offset_ = offset; } in set_pc_offset() argument 55 void set_data_offset(uint64_t offset) { data_offset_ = offset; } in set_data_offset() argument 58 void set_func_offset(uint64_t offset) { func_offset_ = offset; } in set_func_offset() argument 61 void set_text_offset(uint64_t offset) { text_offset_ = offset; } in set_text_offset() argument
|
/system/core/property_service/libpropertyinfoparser/include/property_info_parser/ |
D | property_info_parser.h | 74 const char* c_string(uint32_t offset) const { in c_string() argument 75 if (offset != 0 && offset > size()) return nullptr; in c_string() 76 return static_cast<const char*>(data_base_ + offset); in c_string() 79 const uint32_t* uint32_array(uint32_t offset) const { in uint32_array() argument 80 if (offset != 0 && offset > size()) return nullptr; in uint32_array() 81 return reinterpret_cast<const uint32_t*>(data_base_ + offset); in uint32_array() 84 uint32_t uint32(uint32_t offset) const { in uint32() argument 85 if (offset != 0 && offset > size()) return ~0u; in uint32() 86 return *reinterpret_cast<const uint32_t*>(data_base_ + offset); in uint32() 186 TrieNode trie(uint32_t offset) const { in trie() argument [all …]
|
/system/update_engine/payload_generator/ |
D | boot_img_filesystem.cc | 107 uint64_t offset, in GetFile() argument 111 file.extents = {ExtentForBytes(kBlockSize, offset, size)}; in GetFile() 114 if (utils::ReadFileChunk(filename_, offset, size, &data)) { in GetFile() 120 << offset << " of " << filename_ << ", found " in GetFile() 125 deflate.offset += offset * 8; in GetFile() 136 uint64_t offset = page_size_; in GetFiles() local 137 if (kernel_size_ > 0 && offset + kernel_size_ <= file_size) { in GetFiles() 138 files->emplace_back(GetFile("<kernel>", offset, kernel_size_)); in GetFiles() 140 offset += utils::RoundUp(kernel_size_, page_size_); in GetFiles() 141 if (ramdisk_size_ > 0 && offset + ramdisk_size_ <= file_size) { in GetFiles() [all …]
|
/system/core/libpixelflinger/codeflinger/ |
D | ARMAssemblerInterface.cpp | 55 uint32_t offset = abs(immed8); in __immed8_pre() local 62 ((W&1)<<21) | (((offset&0xF0)<<4)|(offset&0xF)); in __immed8_pre() 70 int Rn, uint32_t offset) in ADDR_LDR() argument 72 LDR(cc, Rd, Rn, offset); in ADDR_LDR() 75 int Rn, uint32_t offset) in ADDR_STR() argument 77 STR(cc, Rd, Rn, offset); in ADDR_STR()
|
/system/core/libutils/ |
D | FileMap_test.cpp | 42 off64_t offset = INT32_MAX + 1024LL; in TEST() local 45 ASSERT_EQ(offset, lseek64(tf.fd, offset, SEEK_SET)); in TEST() 50 ASSERT_TRUE(m.create("test", tf.fd, offset, 0, true)); in TEST() 53 ASSERT_EQ(offset, m.getDataOffset()); in TEST() 62 off64_t offset = 200; in TEST() local 66 ASSERT_FALSE(m.create("test", tf.fd, offset, length, true)); in TEST()
|
/system/extras/simpleperf/ |
D | read_dex_file.cpp | 33 const std::function<std::unique_ptr<art_api::dex::DexFile>(uint64_t offset)>& open_file_cb) { in ReadSymbols() 34 for (uint64_t offset : dex_file_offsets) { in ReadSymbols() local 35 std::unique_ptr<art_api::dex::DexFile> dex_file = open_file_cb(offset); in ReadSymbols() 44 sym.offset += offset; in ReadSymbols() 62 dex_file_offsets, symbols, [&](uint64_t offset) -> std::unique_ptr<art_api::dex::DexFile> { in ReadSymbolsFromDexFileInMemory() argument 64 if (__builtin_sub_overflow(size, offset, &max_file_size)) { in ReadSymbolsFromDexFileInMemory() 67 uint8_t* file_addr = static_cast<uint8_t*>(addr) + offset; in ReadSymbolsFromDexFileInMemory() 87 dex_file_offsets, symbols, [&](uint64_t offset) -> std::unique_ptr<art_api::dex::DexFile> { in ReadSymbolsFromDexFile() argument 90 art_api::dex::DexFile::OpenFromFd(fd, offset, file_path, &error_msg); in ReadSymbolsFromDexFile()
|