Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 26) sorted by relevance

12

/bootable/recovery/otautil/include/otautil/
Dprint_sha1.h25 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()
Drangeset.h160 void Insert(size_t start, size_t len);
164 bool Overlaps(size_t start, size_t len) const;
/bootable/recovery/
Drecovery-persist.cpp86 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()
Dinterlace-frames.py38 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)
Drecovery_main.cpp284 size_t len = 0; in redirect_stdio() local
285 while (getline(&line, &len, pipe_fp) != -1) { in redirect_stdio()
/bootable/recovery/applypatch/
Dapplypatch.cpp138 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 …]
Dimgpatch.cpp82 &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/
Dfuse_sideload.cpp98 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/
Dexpr.cpp131 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/
Drecovery_test.cpp39 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/
Dlogging.cpp88 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/
Dcare_map_generator.py45 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/
Dlogging.h41 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/
Drangeset.cpp276 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/
Dresources_test.cpp114 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/
Devents.cpp114 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()
Dresources.cpp418 __unused int len = row[4]; in res_create_localized_alpha_surface() local
/bootable/recovery/updater/
Dupdater_runtime.cpp150 int UpdaterRuntime::WipeBlockDevice(const std::string_view filename, size_t len) const { in WipeBlockDevice()
157 return wipe_block_device(fd, len); in WipeBlockDevice()
Dinstall.cpp817 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/
Dexpr.h133 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);
Dupdater_runtime_interface.h62 virtual int WipeBlockDevice(const std::string_view filename, size_t len) const = 0;
/bootable/recovery/updater_sample/tools/
Dtest_gen_update_config.py36 self.assertEqual(len(property_files), 6)
/bootable/recovery/updater/include/updater/
Dupdater_runtime.h52 int WipeBlockDevice(const std::string_view filename, size_t len) const override;
Dsimulator_runtime.h49 int WipeBlockDevice(const std::string_view filename, size_t len) const override;
/bootable/recovery/tests/unit/host/
Dimgdiff_test.cpp87 [&](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

12