/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 | 86 size_t offset, std::string* err) { in read_misc_partition() argument 96 if (lseek(fd, static_cast<off_t>(offset), SEEK_SET) != static_cast<off_t>(offset)) { in read_misc_partition() 110 size_t offset, std::string* err) { in write_misc_partition() argument 117 if (lseek(fd, static_cast<off_t>(offset), SEEK_SET) != static_cast<off_t>(offset)) { in write_misc_partition() 242 static bool OffsetAndSizeInVendorSpace(size_t offset, size_t size) { in OffsetAndSizeInVendorSpace() argument 244 return size <= total_size && offset <= total_size - size; in OffsetAndSizeInVendorSpace() 247 bool ReadMiscPartitionVendorSpace(void* data, size_t size, size_t offset, std::string* err) { in ReadMiscPartitionVendorSpace() argument 248 if (!OffsetAndSizeInVendorSpace(offset, size)) { in ReadMiscPartitionVendorSpace() 249 *err = android::base::StringPrintf("Out of bound read (offset %zu size %zu)", offset, size); in ReadMiscPartitionVendorSpace() 256 return read_misc_partition(data, size, misc_blk_device, VENDOR_SPACE_OFFSET_IN_MISC + offset, in ReadMiscPartitionVendorSpace() [all …]
|
/bootable/recovery/fuse_sideload/ |
D | fuse_provider.cpp | 51 uint64_t offset = static_cast<uint64_t>(start_block) * fuse_block_size_; in ReadBlockAlignedData() local 52 if (fetch_size > file_size_ || offset > file_size_ - fetch_size) { in ReadBlockAlignedData() 60 if (!android::base::ReadFullyAtOffset(fd_, buffer, fetch_size, offset)) { in ReadBlockAlignedData() 62 fetch_size, offset, strerror(errno)); 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 | graphics_drm.cpp | 128 MAP_SHARED, drm_fd, map_dumb.offset); in Create()
|
/bootable/recovery/install/ |
D | package.cpp | 49 bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) override; 89 bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) override; 160 bool MemoryPackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset() argument 161 if (byte_count > package_size_ || offset > package_size_ - byte_count) { in ReadFullyAtOffset() 162 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset() 166 memcpy(buffer, addr_ + offset, byte_count); in ReadFullyAtOffset() 211 bool FilePackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset() argument 212 if (byte_count > package_size_ || offset > package_size_ - byte_count) { in ReadFullyAtOffset() 213 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset() 218 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/misc_writer/ |
D | misc_writer.cpp | 67 size_t offset = 0; in main() local 79 if (!android::base::ParseUint(optarg, &offset)) { in main() 101 if (std::string err; !WriteMiscPartitionVendorSpace(data.data(), data.size(), offset, &err)) { in main()
|
/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/bootloader_message/include/bootloader_message/ |
D | bootloader_message.h | 234 bool ReadMiscPartitionVendorSpace(void* data, size_t size, size_t offset, std::string* err); 238 bool WriteMiscPartitionVendorSpace(const void* data, size_t size, size_t offset, std::string* err);
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 190 static bool discard_blocks(int fd, off64_t offset, uint64_t size, bool force = false) { in discard_blocks() argument 196 uint64_t args[2] = { static_cast<uint64_t>(offset), size }; in discard_blocks() 208 static bool check_lseek(int fd, off64_t offset, int whence) { in check_lseek() argument 209 off64_t rc = TEMP_FAILURE_RETRY(lseek64(fd, offset, whence)); in check_lseek() 301 off64_t offset = static_cast<off64_t>(range.first) * BLOCKSIZE; in SeekToOutputRange() local 305 if (!discard_blocks(fd_, offset, current_range_left_)) { in SeekToOutputRange() 308 if (!check_lseek(fd_, offset, SEEK_SET)) { in SeekToOutputRange() 500 off64_t offset = static_cast<off64_t>(begin) * BLOCKSIZE; in WriteBlocks() local 502 if (!discard_blocks(fd, offset, size)) { in WriteBlocks() 506 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/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;
|