/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/ |
D | PayloadSpecs.java | 56 long offset = 0; in forNonStreaming() local 63 offset += 30 + name.length() + extraSize; in forNonStreaming() 75 payloadOffset = offset; in forNonStreaming() 87 offset += length; in forNonStreaming() 96 .offset(payloadOffset) in forNonStreaming() 106 long offset, in forStreaming() argument 111 .offset(offset) in forStreaming()
|
D | FileDownloader.java | 43 public FileDownloader(String url, long offset, long size, File destination) { in FileDownloader() argument 45 this.mOffset = offset; in FileDownloader()
|
/bootable/recovery/bootloader_message/ |
D | bootloader_message.cpp | 91 size_t offset, std::string* err) { in read_misc_partition() argument 101 if (lseek(fd, static_cast<off_t>(offset), SEEK_SET) != static_cast<off_t>(offset)) { in read_misc_partition() 115 size_t offset, std::string* err) { in write_misc_partition() argument 122 if (lseek(fd, static_cast<off_t>(offset), SEEK_SET) != static_cast<off_t>(offset)) { in write_misc_partition() 264 static bool ValidateSystemSpaceRegion(size_t offset, size_t size, std::string* err) { in ValidateSystemSpaceRegion() argument 265 if (size <= SYSTEM_SPACE_SIZE_IN_MISC && offset <= (SYSTEM_SPACE_SIZE_IN_MISC - size)) { in ValidateSystemSpaceRegion() 268 *err = android::base::StringPrintf("Out of bound access (offset %zu size %zu)", offset, size); in ValidateSystemSpaceRegion() 272 static bool ReadMiscPartitionSystemSpace(void* data, size_t size, size_t offset, std::string* err) { in ReadMiscPartitionSystemSpace() argument 273 if (!ValidateSystemSpaceRegion(offset, size, err)) { in ReadMiscPartitionSystemSpace() 280 return read_misc_partition(data, size, misc_blk_device, SYSTEM_SPACE_OFFSET_IN_MISC + offset, in ReadMiscPartitionSystemSpace() [all …]
|
/bootable/recovery/fuse_sideload/ |
D | fuse_provider.cpp | 59 uint64_t offset = static_cast<uint64_t>(start_block) * fuse_block_size_; in ReadBlockAlignedData() local 60 if (fetch_size > file_size_ || offset > file_size_ - fetch_size) { in ReadBlockAlignedData() 68 if (!android::base::ReadFullyAtOffset(fd_, buffer, fetch_size, offset)) { in ReadBlockAlignedData() 70 fetch_size, offset, strerror(errno)); in ReadBlockAlignedData() 95 uint64_t offset = static_cast<uint64_t>(start_block) * fuse_block_size_; in ReadBlockAlignedData() local 96 if (fetch_size > file_size_ || offset > file_size_ - fetch_size) { in ReadBlockAlignedData() 97 LOG(ERROR) << "Out of bound read, offset: " << offset << ", fetch size: " << fetch_size in ReadBlockAlignedData() 103 ranges_.GetSubRanges(offset / source_block_size_, fetch_size / source_block_size_); in ReadBlockAlignedData()
|
D | fuse_sideload.cpp | 283 uint64_t offset = req->offset; in handle_read() local 303 uint32_t block = offset / fd->block_size; in handle_read() 315 uint32_t block_offset = offset - (block * fd->block_size); in handle_read()
|
/bootable/recovery/minui/ |
D | graphics_adf.h | 44 GRSurfaceAdf(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes, __u32 offset, in GRSurfaceAdf() argument 46 : GRSurface(width, height, row_bytes, pixel_bytes), offset(offset), pitch(pitch), fd(fd) {} in GRSurfaceAdf() 48 const __u32 offset; variable
|
D | graphics_adf.cpp | 46 __u32 offset; in Create() local 49 &offset, &pitch); in Create() 58 offset, pitch, fd)); in Create() 61 mmap(nullptr, surf->pitch * surf->height, PROT_WRITE, MAP_SHARED, surf->fd, surf->offset); in Create() 185 surf->fd, surf->offset, surf->pitch, -1); in Flip()
|
D | graphics_fbdev.cpp | 93 vi.bits_per_pixel, vi.red.offset, vi.red.length, vi.green.offset, vi.green.length, in Init() 94 vi.blue.offset, vi.blue.length); in Init()
|
D | events.cpp | 111 size_t offset = 0; in inotify_cb() local 112 while (offset < event_len) { in inotify_cb() 113 struct inotify_event* pevent = reinterpret_cast<struct inotify_event*>(buf.data() + offset); in inotify_cb() 114 if (offset + sizeof(inotify_event) + pevent->len > event_len) { in inotify_cb() 119 offset += sizeof(inotify_event) + pevent->len; in inotify_cb()
|
D | graphics_drm.cpp | 132 MAP_SHARED, drm_fd, map_dumb.offset); in Create()
|
/bootable/recovery/install/ |
D | package.cpp | 57 bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) override; 105 bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) override; 176 bool MemoryPackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset() argument 177 if (byte_count > package_size_ || offset > package_size_ - byte_count) { in ReadFullyAtOffset() 178 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset() 182 memcpy(buffer, addr_ + offset, byte_count); in ReadFullyAtOffset() 227 bool FilePackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset() argument 228 if (byte_count > package_size_ || offset > package_size_ - byte_count) { in ReadFullyAtOffset() 229 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset() 234 if (!android::base::ReadFullyAtOffset(fd_.get(), buffer, byte_count, offset)) { in ReadFullyAtOffset() [all …]
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ |
D | PayloadSpec.java | 97 public Builder offset(long offset) { in offset() method in PayloadSpec.Builder 98 this.mOffset = offset; in offset()
|
D | UpdateConfig.java | 198 public PackageFile(String filename, long offset, long size) { in PackageFile() argument 200 this.mOffset = offset; in PackageFile()
|
/bootable/recovery/recovery_ui/ |
D | screen_ui.cpp | 152 int offset = 0; in DrawHeader() local 156 offset += draw_funcs_.DrawWrappedTextLines(x, y + offset, text_headers()); in DrawHeader() 158 offset += draw_funcs_.DrawTextLines(x, y + offset, text_headers()); in DrawHeader() 163 offset += draw_funcs_.DrawTextLine(x, y + offset, cur_selection_str, true); in DrawHeader() 167 return offset; in DrawHeader() 171 int offset = 0; in DrawItems() local 176 offset += draw_funcs_.DrawHorizontalRule(y + offset) + 4; in DrawItems() 185 draw_funcs_.DrawHighlightBar(0, y + offset - 2, screen_width, bar_height); in DrawItems() 191 offset += draw_funcs_.DrawTextLine(x, y + offset, TextItem(i), bold); in DrawItems() 195 offset += draw_funcs_.DrawHorizontalRule(y + offset); in DrawItems() [all …]
|
/bootable/recovery/updater_sample/tools/ |
D | test_gen_update_config.py | 39 filename, offset, size = prop['filename'], prop['offset'], prop['size'] 40 pkg_file.seek(offset)
|
D | gen_update_config.py | 107 filename, offset, size = file.split(':') 110 'offset': int(offset),
|
/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/util/ |
D | PayloadSpecsTest.java | 103 long offset = 45; in forStreaming_works() local 107 PayloadSpec spec = mPayloadSpecs.forStreaming(url, offset, size, propertiesFile); in forStreaming_works() 109 assertEquals("same offset", offset, spec.getOffset()); in forStreaming_works()
|
/bootable/recovery/applypatch/ |
D | imgdiff.cpp | 417 size_t offset = 0; in TryReconstruction() local 428 if (memcmp(buffer.data(), input_file_ptr_->data() + start_ + offset, compressed_size) != 0) { in TryReconstruction() 433 offset += compressed_size; in TryReconstruction() 437 if (offset != raw_data_len_) { in TryReconstruction() 499 size_t PatchChunk::WriteHeaderToFd(int fd, size_t offset, size_t index) const { in WriteHeaderToFd() argument 507 Write8(fd, static_cast<int64_t>(offset)); in WriteHeaderToFd() 508 return offset + data_.size(); in WriteHeaderToFd() 514 Write8(fd, static_cast<int64_t>(offset)); in WriteHeaderToFd() 522 return offset + data_.size(); in WriteHeaderToFd() 530 return offset; in WriteHeaderToFd() [all …]
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 195 static bool discard_blocks(int fd, off64_t offset, uint64_t size, bool force = false) { in discard_blocks() argument 201 uint64_t args[2] = { static_cast<uint64_t>(offset), size }; in discard_blocks() 213 static bool check_lseek(int fd, off64_t offset, int whence) { in check_lseek() argument 214 off64_t rc = TEMP_FAILURE_RETRY(lseek64(fd, offset, whence)); in check_lseek() 306 off64_t offset = static_cast<off64_t>(range.first) * BLOCKSIZE; in SeekToOutputRange() local 310 if (!discard_blocks(fd_, offset, current_range_left_)) { in SeekToOutputRange() 313 if (!check_lseek(fd_, offset, SEEK_SET)) { in SeekToOutputRange() 505 off64_t offset = static_cast<off64_t>(begin) * BLOCKSIZE; in WriteBlocks() local 507 if (!discard_blocks(fd, offset, size)) { in WriteBlocks() 511 if (!check_lseek(fd, offset, SEEK_SET)) { in WriteBlocks() [all …]
|
D | commands.cpp | 248 size_t offset; in Parse() local 250 if (!android::base::ParseUint(tokens[pos++], &offset) || in Parse() 255 patch_info = PatchInfo(offset, length); in Parse()
|
/bootable/recovery/install/include/install/ |
D | verifier.h | 70 virtual bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) = 0;
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 170 PatchInfo(size_t offset, size_t length) : offset_(offset), length_(length) {} in PatchInfo() argument 172 size_t offset() const { in offset() function
|
/bootable/recovery/bootloader_message/include/bootloader_message/ |
D | bootloader_message.h | 125 size_t offset, std::string* err);
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 145 static int write_at_offset(unsigned char* buffer, size_t size, int wfd, off64_t offset) { in write_at_offset() argument 146 if (TEMP_FAILURE_RETRY(lseek64(wfd, offset, SEEK_SET)) == -1) { in write_at_offset() 147 PLOG(ERROR) << "error seeking to offset " << offset; in write_at_offset() 151 PLOG(ERROR) << "error writing offset " << offset; in write_at_offset()
|
/bootable/recovery/applypatch/include/applypatch/ |
D | imgdiff_image.h | 141 size_t WriteHeaderToFd(int fd, size_t offset, size_t index) const;
|