/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 | 160 void Insert(size_t start, size_t len); 164 bool Overlaps(size_t start, size_t len) const;
|
/bootable/recovery/ |
D | recovery-persist.cpp | 86 const char *buf, size_t len, in logsave() argument 92 std::string buffer(buf, len); in logsave() 99 return len; in logsave() 129 size_t len = 0; in main() local 131 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 | 284 size_t len = 0; in redirect_stdio() local 285 while (getline(&line, &len, pipe_fp) != -1) { in redirect_stdio()
|
/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/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/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/recovery_utils/ |
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()
|
/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/recovery_utils/include/recovery_utils/ |
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,
|
/bootable/recovery/otautil/ |
D | rangeset.cpp | 276 void SortedRangeSet::Insert(size_t start, size_t len) { in Insert() argument 277 Range to_insert{ start / kBlockSize, (start + len - 1) / kBlockSize + 1 }; in Insert() 281 bool SortedRangeSet::Overlaps(size_t start, size_t len) const { in Overlaps() 282 RangeSet rs({ { start / kBlockSize, (start + len - 1) / kBlockSize + 1 } }); in Overlaps()
|
/bootable/recovery/tests/unit/ |
D | resources_test.cpp | 114 int len = row[4]; in TEST_P() local 117 EXPECT_LT(0, len) << "Locale string should be non-empty."; in TEST_P()
|
/bootable/recovery/minui/ |
D | events.cpp | 114 if (offset + sizeof(inotify_event) + pevent->len > event_len) { in inotify_cb() 119 offset += sizeof(inotify_event) + pevent->len; in inotify_cb() 121 pevent->name[pevent->len] = '\0'; in inotify_cb()
|
D | resources.cpp | 418 __unused int len = row[4]; in res_create_localized_alpha_surface() local
|
/bootable/recovery/updater/ |
D | updater_runtime.cpp | 150 int UpdaterRuntime::WipeBlockDevice(const std::string_view filename, size_t len) const { in WipeBlockDevice() 157 return wipe_block_device(fd, len); in WipeBlockDevice()
|
D | install.cpp | 817 size_t len; in WipeBlockDeviceFn() local 818 if (!android::base::ParseUint(len_str.c_str(), &len)) { in WipeBlockDeviceFn() 823 int status = updater_runtime->WipeBlockDevice(filename, len); in WipeBlockDeviceFn()
|
/bootable/recovery/edify/include/edify/ |
D | expr.h | 133 std::vector<std::string>* args, size_t start, size_t len); 140 std::vector<std::unique_ptr<Value>>* args, size_t start, size_t len);
|
D | updater_runtime_interface.h | 62 virtual int WipeBlockDevice(const std::string_view filename, size_t len) const = 0;
|
/bootable/recovery/updater_sample/tools/ |
D | test_gen_update_config.py | 36 self.assertEqual(len(property_files), 6)
|
/bootable/recovery/updater/include/updater/ |
D | updater_runtime.h | 52 int WipeBlockDevice(const std::string_view filename, size_t len) const override;
|
D | simulator_runtime.h | 49 int WipeBlockDevice(const std::string_view filename, size_t len) const override;
|
/bootable/recovery/tests/unit/host/ |
D | imgdiff_test.cpp | 87 [&](const unsigned char* data, size_t len) { in GenerateTarget() argument 88 patched->append(reinterpret_cast<const char*>(data), len); in GenerateTarget() 89 return len; in GenerateTarget() 677 [](const unsigned char* /*data*/, size_t len) { return len; })); in TEST() argument
|