Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/tests/component/
Dapplypatch_test.cpp76 sha1sum(old_file, &old_sha1, &old_size); in SetUp()
92 size_t old_size; member in ApplyPatchTest
136 "EMMC:" + old_file + ":" + std::to_string(old_size) + ":" + old_sha1; in TEST_F()
141 src_file = "EMMC:" + old_file + ":" + std::to_string(old_size - 1) + ":" + old_sha1 + ":" + in TEST_F()
142 std::to_string(old_size + 1) + ":" + old_sha1; in TEST_F()
147 std::to_string(old_size - 1) + ":" + old_sha1 + ":" + in TEST_F()
148 std::to_string(old_size) + ":" + old_sha1 + ":" + in TEST_F()
149 std::to_string(old_size + 1) + ":" + old_sha1; in TEST_F()
154 std::to_string(old_size + 1) + ":" + old_sha1 + ":" + in TEST_F()
155 std::to_string(old_size - 1) + ":" + old_sha1 + ":" + in TEST_F()
[all …]
/bootable/recovery/applypatch/
Dbspatch.cpp68 int ApplyBSDiffPatch(const unsigned char* old_data, size_t old_size, const Value& patch, in ApplyBSDiffPatch() argument
78 int result = bsdiff::bspatch(old_data, old_size, in ApplyBSDiffPatch()
Dimgpatch.cpp135 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const unsigned char* patch_data, in ApplyImagePatch() argument
138 return ApplyImagePatch(old_data, old_size, patch, sink, nullptr, nullptr); in ApplyImagePatch()
141 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink, in ApplyImagePatch() argument
179 if (src_start + src_len > old_size) { in ApplyImagePatch()
223 if (src_start + src_len > old_size) { in ApplyImagePatch()
/bootable/recovery/applypatch/include/applypatch/
Dapplypatch.h68 int ApplyBSDiffPatch(const unsigned char* old_data, size_t old_size, const Value& patch,
76 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink,
Dimgpatch.h26 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const unsigned char* patch_data,