/bootable/recovery/applypatch/ |
D | bspatch.cpp | 70 auto sha_sink = [&sink, &ctx](const uint8_t* data, size_t len) { in ApplyBSDiffPatch() argument 71 len = sink(data, len); in ApplyBSDiffPatch() 72 if (ctx) SHA1_Update(ctx, data, len); in ApplyBSDiffPatch() 73 return len; in ApplyBSDiffPatch()
|
D | applypatch.cpp | 47 static size_t FileSink(const unsigned char* data, size_t len, int fd); 218 int WriteToPartition(const unsigned char* data, size_t len, const std::string& target) { in WriteToPartition() argument 239 while (start < len) { in WriteToPartition() 240 size_t to_write = len - start; in WriteToPartition() 284 start = len; in WriteToPartition() 285 for (size_t p = 0; p < len; p += sizeof(buffer)) { in WriteToPartition() 286 size_t to_read = len - p; in WriteToPartition() 314 if (start == len) { in WriteToPartition() 424 static size_t FileSink(const unsigned char* data, size_t len, int fd) { in FileSink() argument 426 while (done < len) { in FileSink() [all …]
|
D | imgpatch.cpp | 80 &ret, &ctx, &sink](const uint8_t* data, size_t len) -> size_t { in ApplyBSDiffPatchAndStreamOutput() argument 82 strm.avail_in = len; in ApplyBSDiffPatchAndStreamOutput() 88 if (actual_target_length + len < expected_target_length) { in ApplyBSDiffPatchAndStreamOutput() 108 actual_target_length += len; in ApplyBSDiffPatchAndStreamOutput() 109 return len; in ApplyBSDiffPatchAndStreamOutput()
|
/bootable/recovery/otautil/include/otautil/ |
D | print_sha1.h | 25 static std::string print_sha1(const uint8_t* sha1, size_t len) { in print_sha1() argument 28 for (size_t i = 0; i < len; ++i) { in print_sha1() 43 [[maybe_unused]] static std::string print_hex(const uint8_t* bytes, size_t len) { in print_hex() argument 44 return print_sha1(bytes, len); in print_hex()
|
D | rangeset.h | 153 void Insert(size_t start, size_t len); 157 bool Overlaps(size_t start, size_t len) const;
|
/bootable/recovery/ |
D | rotate_logs.cpp | 35 size_t len, void* arg) { in logbasename() argument 41 return len; in logbasename() 44 ssize_t logrotate(log_id_t id, char prio, const char* filename, const char* buf, size_t len, in logrotate() argument 48 return __android_log_pmsg_file_write(id, prio, filename, buf, len); in logrotate() 57 return __android_log_pmsg_file_write(id, prio, filename, buf, len); in logrotate() 77 return __android_log_pmsg_file_write(id, prio, name.c_str(), buf, len); in logrotate()
|
D | recovery-persist.cpp | 85 const char *buf, size_t len, in logsave() argument 91 std::string buffer(buf, len); in logsave() 98 return len; in logsave() 128 size_t len = 0; in main() local 130 while ((read = getline(&line, &len, fp)) != -1) { in main()
|
D | rotate_logs.h | 27 ssize_t logbasename(log_id_t id, char prio, const char* filename, const char* buf, size_t len, 30 ssize_t logrotate(log_id_t id, char prio, const char* filename, const char* buf, size_t len,
|
D | interlace-frames.py | 38 assert len(frames) > 0, "Must have at least one input frame." 43 assert len(sizes) == 1, "All input images must have the same size." 45 N = len(frames)
|
/bootable/recovery/tests/manual/ |
D | recovery_test.cpp | 44 const char *buf, size_t len, void *arg) { in __pmsg_fn() argument 49 EXPECT_EQ(myContent.size(), len); in __pmsg_fn() 51 return len; in __pmsg_fn() 203 int len = row[4]; in TEST_P() local 206 EXPECT_LT(0, len) << "Locale string should be non-empty."; in TEST_P()
|
/bootable/recovery/edify/ |
D | expr.cpp | 131 int len = argv[i]->end - argv[i]->start; in AssertFn() local 132 state->errmsg = "assert failed: " + state->script.substr(argv[i]->start, len); in AssertFn() 358 std::vector<std::string>* args, size_t start, size_t len) { in ReadArgs() argument 362 if (start + len > argv.size()) { in ReadArgs() 365 for (size_t i = start; i < start + len; ++i) { in ReadArgs() 384 std::vector<std::unique_ptr<Value>>* args, size_t start, size_t len) { in ReadValueArgs() argument 388 if (len == 0 || start + len > argv.size()) { in ReadValueArgs() 391 for (size_t i = start; i < start + len; ++i) { in ReadValueArgs()
|
/bootable/recovery/otautil/ |
D | rangeset.cpp | 228 void SortedRangeSet::Insert(size_t start, size_t len) { in Insert() argument 229 Range to_insert{ start / kBlockSize, (start + len - 1) / kBlockSize + 1 }; in Insert() 233 bool SortedRangeSet::Overlaps(size_t start, size_t len) const { in Overlaps() 234 RangeSet rs({ { start / kBlockSize, (start + len - 1) / kBlockSize + 1 } }); in Overlaps()
|
/bootable/recovery/edify/include/edify/ |
D | expr.h | 135 std::vector<std::string>* args, size_t start, size_t len); 142 std::vector<std::unique_ptr<Value>>* args, size_t start, size_t len);
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 188 int len = strlen(v->mount_point); in find_block_device() local 189 if (strncmp(path, v->mount_point, len) == 0 && in find_block_device() 190 (path[len] == '/' || path[len] == 0)) { in find_block_device()
|
/bootable/recovery/tests/component/ |
D | imgdiff_test.cpp | 89 [&](const unsigned char* data, size_t len) { in GenerateTarget() argument 90 patched->append(reinterpret_cast<const char*>(data), len); in GenerateTarget() 91 return len; in GenerateTarget() 636 [](const unsigned char* /*data*/, size_t len) { return len; })); in TEST() argument
|
/bootable/recovery/updater/ |
D | install.cpp | 963 size_t len; in WipeBlockDeviceFn() local 964 if (!android::base::ParseUint(len_str.c_str(), &len)) { in WipeBlockDeviceFn() 970 int status = wipe_block_device(fd, len); in WipeBlockDeviceFn()
|
/bootable/recovery/minui/ |
D | resources.cpp | 464 __unused int len = row[4]; in res_create_localized_alpha_surface() local
|