/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 | logging.h | 41 ssize_t logbasename(log_id_t id, char prio, const char* filename, const char* buf, size_t len, 44 ssize_t logrotate(log_id_t id, char prio, const char* filename, const char* buf, size_t len,
|
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 | recovery-persist.cpp | 88 const char *buf, size_t len, in logsave() argument 94 std::string buffer(buf, len); in logsave() 101 return len; in logsave() 145 size_t len = 0; in main() local 147 while ((read = getline(&line, &len, fp)) != -1) { in main()
|
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)
|
D | recovery_main.cpp | 278 size_t len = 0; in redirect_stdio() local 279 while (getline(&line, &len, pipe_fp) != -1) { in redirect_stdio()
|
/bootable/recovery/tests/manual/ |
D | recovery_test.cpp | 39 const char *buf, size_t len, void *arg) { in __pmsg_fn() argument 44 EXPECT_EQ(kInjectTxtContent.size(), len); in __pmsg_fn() 46 return len; in __pmsg_fn()
|
/bootable/recovery/applypatch/ |
D | applypatch.cpp | 138 size_t len = file_contents.data.size(); in WriteBufferToPartition() local 153 if (!android::base::WriteFully(fd, data + start, len - start)) { in WriteBufferToPartition() 154 PLOG(ERROR) << "Failed to write " << len - start << " bytes to \"" << partition << "\""; in WriteBufferToPartition() 190 start = len; in WriteBufferToPartition() 191 for (size_t p = 0; p < len; p += sizeof(buffer)) { in WriteBufferToPartition() 192 size_t to_read = len - p; in WriteBufferToPartition() 209 if (start == len) { in WriteBufferToPartition() 367 SinkFn sink = [&patched, &ctx](const unsigned char* data, size_t len) { in GenerateTarget() argument 368 SHA1_Update(&ctx, data, len); in GenerateTarget() 369 patched.data.insert(patched.data.end(), data, data + len); in GenerateTarget() [all …]
|
D | imgpatch.cpp | 82 &ret, &sink](const uint8_t* data, size_t len) -> size_t { in ApplyBSDiffPatchAndStreamOutput() argument 84 strm.avail_in = len; in ApplyBSDiffPatchAndStreamOutput() 90 if (actual_target_length + len < expected_target_length) { in ApplyBSDiffPatchAndStreamOutput() 109 actual_target_length += len; in ApplyBSDiffPatchAndStreamOutput() 110 return len; in ApplyBSDiffPatchAndStreamOutput()
|
/bootable/recovery/fuse_sideload/ |
D | fuse_sideload.cpp | 98 static void fuse_reply(const fuse_data* fd, uint64_t unique, const void* data, size_t len) { in fuse_reply() argument 100 hdr.len = len + sizeof(hdr); in fuse_reply() 108 vec[1].iov_len = len; in fuse_reply() 295 outhdr.len = sizeof(outhdr) + size; in handle_read() 416 ssize_t len = TEMP_FAILURE_RETRY(read(fd.ffd, request_buffer, sizeof(request_buffer))); in run_fuse_sideload() local 417 if (len == -1) { in run_fuse_sideload() 426 if (static_cast<size_t>(len) < sizeof(fuse_in_header)) { in run_fuse_sideload() 427 fprintf(stderr, "request too short: len=%zd\n", len); in run_fuse_sideload() 477 outhdr.len = sizeof(outhdr); in run_fuse_sideload()
|
/bootable/recovery/update_verifier/ |
D | care_map_generator.py | 45 assert len(lines) % step == 0, \ 46 "line count must be multiple of {}: {}".format(step, len(lines)) 49 for index in range(0, len(lines), step):
|
/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 | logging.cpp | 88 size_t len, void* arg) { in logbasename() argument 94 return len; in logbasename() 97 ssize_t logrotate(log_id_t id, char prio, const char* filename, const char* buf, size_t len, in logrotate() argument 101 return __android_log_pmsg_file_write(id, prio, filename, buf, len); in logrotate() 110 return __android_log_pmsg_file_write(id, prio, filename, buf, len); in logrotate() 130 return __android_log_pmsg_file_write(id, prio, name.c_str(), buf, len); in logrotate()
|
D | rangeset.cpp | 224 void SortedRangeSet::Insert(size_t start, size_t len) { in Insert() argument 225 Range to_insert{ start / kBlockSize, (start + len - 1) / kBlockSize + 1 }; in Insert() 229 bool SortedRangeSet::Overlaps(size_t start, size_t len) const { in Overlaps() 230 RangeSet rs({ { start / kBlockSize, (start + len - 1) / kBlockSize + 1 } }); in Overlaps()
|
/bootable/recovery/tests/component/ |
D | resources_test.cpp | 98 int len = row[4]; in TEST_P() local 101 EXPECT_LT(0, len) << "Locale string should be non-empty."; in TEST_P()
|
D | imgdiff_test.cpp | 88 [&](const unsigned char* data, size_t len) { in GenerateTarget() argument 89 patched->append(reinterpret_cast<const char*>(data), len); in GenerateTarget() 90 return len; in GenerateTarget() 678 [](const unsigned char* /*data*/, size_t len) { return len; })); in TEST() argument
|
/bootable/recovery/updater_sample/tools/ |
D | test_gen_update_config.py | 36 self.assertEqual(len(property_files), 6)
|
/bootable/recovery/edify/include/edify/ |
D | expr.h | 132 std::vector<std::string>* args, size_t start, size_t len); 139 std::vector<std::unique_ptr<Value>>* args, size_t start, size_t len);
|
/bootable/recovery/updater/ |
D | install.cpp | 865 size_t len; in WipeBlockDeviceFn() local 866 if (!android::base::ParseUint(len_str.c_str(), &len)) { in WipeBlockDeviceFn() 877 int status = wipe_block_device(fd, len); in WipeBlockDeviceFn()
|
D | blockimg.cpp | 1362 size_t len; in PerformCommandDiff() local 1363 if (!android::base::ParseUint(params.tokens[params.cpos++], &len)) { in PerformCommandDiff() 1391 std::string(reinterpret_cast<const char*>(params.patch_start + offset), len)); in PerformCommandDiff()
|
/bootable/recovery/minui/ |
D | resources.cpp | 414 __unused int len = row[4]; in res_create_localized_alpha_surface() local
|