Lines Matching refs:size
100 ASSERT_EQ(0, zip_writer.WriteBytes(entry.second.data(), entry.second.size())); in BuildUpdatePackage()
111 SHA1(reinterpret_cast<const uint8_t*>(content.data()), content.size(), digest); in GetSha1()
117 if (argv.size() != 1) { in BlobToString()
118 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in BlobToString()
258 size_t source_size = source_content.size(); in TEST_F()
265 size_t target_size = target_content.size(); in TEST_F()
421 ASSERT_EQ(129 * 4096, data.size()); in TEST_F()
446 ASSERT_EQ(129 * 4096, updated.size()); in TEST_F()
457 SHA256(hash_tree.data(), hash_tree.size(), digest.data()); in TEST_F()
468 ASSERT_EQ(129 * 4096, data.size()); in TEST_F()
604 ASSERT_EQ(2U, android::base::Split(cmd, " ").size()); in TEST_F()
627 ASSERT_EQ(3U, android::base::Split(cmd, " ").size()); in TEST_F()
655 ASSERT_EQ(0, bsdiff::bsdiff(reinterpret_cast<const uint8_t*>(source.data()), source.size(), in GetEntriesForBsdiff()
656 reinterpret_cast<const uint8_t*>(target.data()), target.size(), in GetEntriesForBsdiff()
664 size_t source_blocks = source.size() / 4096; in GetEntriesForBsdiff()
673 android::base::StringPrintf("bsdiff 0 %zu %s %s 2,0,%zu %zu 2,0,%zu", patch_content.size(), in GetEntriesForBsdiff()
831 size_t encoded_size = BrotliEncoderMaxCompressedSize(brotli_new_data.size()); in TEST_F()
834 BROTLI_DEFAULT_QUALITY, BROTLI_DEFAULT_WINDOW, BROTLI_DEFAULT_MODE, brotli_new_data.size(), in TEST_F()
1063 if (pieces.size() == 1) { in GenerateTransferList()
1067 CHECK_EQ(2u, pieces.size()); in GenerateTransferList()
1080 CHECK_EQ(0, bsdiff::bsdiff(reinterpret_cast<const uint8_t*>(bdc.data()), bdc.size(), in GenerateTransferList()
1081 reinterpret_cast<const uint8_t*>(g.data()), g.size(), in GenerateTransferList()
1092 CHECK_EQ(0, bsdiff::bsdiff(reinterpret_cast<const uint8_t*>(abcd.data()), abcd.size(), in GenerateTransferList()
1093 reinterpret_cast<const uint8_t*>(dcb.data()), dcb.size(), in GenerateTransferList()
1117 patch_bdc_g.size(), // patch start (0), patch length in GenerateTransferList()
1138 patch_bdc_g.size(), // patch start in GenerateTransferList()
1139 patch_bdc_g.size() + patch_abcd_dcb.size(), // patch length in GenerateTransferList()
1174 g_transfer_list.size() -