/external/chromium_org/sdch/open-vcdiff/src/ |
blockhash.h | 31 // of size kBlockSize in both the incrementally processed target data 36 // entry in the BlockHash corresponding to each kBlockSize bytes 43 // (== kBlockSize * block_number). This greatly reduces the size 50 // Using (for example) kBlockSize = 4 guarantees that no match smaller 56 // Increasing kBlockSize by a factor of two will halve the amount of 64 // matches found, and a low value of kBlockSize will waste time 68 // It is suggested that different values of kBlockSize be tried against 72 // If you change kBlockSize to a smaller value, please increase 74 static const int kBlockSize = 16; 115 // will contain one entry for each kBlockSize-byte block in th [all...] |
vcdiffengine.cc | 57 RollingHash<BlockHash::kBlockSize>::Init(); 162 if (target_size < static_cast<size_t>(BlockHash::kBlockSize)) { 167 RollingHash<BlockHash::kBlockSize> hasher; 181 const char* const start_of_last_block = target_end - BlockHash::kBlockSize; 185 // candidate_pos points to the start of the kBlockSize-byte block that may 225 candidate_pos[BlockHash::kBlockSize]);
|
/external/open-vcdiff/src/ |
blockhash.h | 31 // of size kBlockSize in both the incrementally processed target data 36 // entry in the BlockHash corresponding to each kBlockSize bytes 43 // (== kBlockSize * block_number). This greatly reduces the size 50 // Using (for example) kBlockSize = 4 guarantees that no match smaller 56 // Increasing kBlockSize by a factor of two will halve the amount of 64 // matches found, and a low value of kBlockSize will waste time 68 // It is suggested that different values of kBlockSize be tried against 72 // If you change kBlockSize to a smaller value, please increase 74 static const int kBlockSize = 16; 115 // will contain one entry for each kBlockSize-byte block in th [all...] |
vcdiffengine.cc | 57 RollingHash<BlockHash::kBlockSize>::Init(); 162 if (target_size < static_cast<size_t>(BlockHash::kBlockSize)) { 167 RollingHash<BlockHash::kBlockSize> hasher; 181 const char* const start_of_last_block = target_end - BlockHash::kBlockSize; 185 // candidate_pos points to the start of the kBlockSize-byte block that may 225 candidate_pos[BlockHash::kBlockSize]);
|
/external/chromium_org/webkit/browser/appcache/ |
appcache_response_unittest.cc | 29 static const int kBlockSize = 1024; 321 read_buffer_ = new IOBuffer(kBlockSize); 323 kBlockSize, 385 GetHttpResponseInfoSize(head) + kNumBlocks * kBlockSize; 454 new IOBuffer(kBlockSize)); 455 FillData(block_number, io_buffer->data(), kBlockSize); 456 WriteResponseBody(io_buffer, kBlockSize); 473 ReadResponseBody(new IOBuffer(kBlockSize), kBlockSize); 477 EXPECT_TRUE(CheckData(block_number, read_buffer_->data(), kBlockSize)); [all...] |
appcache_url_request_job_unittest.cc | 37 static const int kBlockSize = 1024; 67 received_data_(new net::IOBuffer(kNumBlocks * kBlockSize)), 111 DCHECK(amount_received_ + kBlockSize <= kNumBlocks * kBlockSize); 116 request->Read(wrapped_buffer.get(), kBlockSize, &bytes_read)); 607 scoped_refptr<IOBuffer> body(new IOBuffer(kBlockSize * 3)); 609 for (int i = 0; i < 3; ++i, p += kBlockSize) 610 FillData(i + 1, p, kBlockSize); 613 MakeHttpResponseInfo(raw_headers), body.get(), kBlockSize * 3); 623 for (int i = 0; i < 3; ++i, p += kBlockSize) [all...] |
/external/chromium_org/third_party/leveldatabase/src/db/ |
log_test.cc | 227 2 * log::kBlockSize - 1000, // Span three blocks 235 (2 * log::kBlockSize - 1000) + 3 * kHeaderSize}; 277 const int n = kBlockSize - 2*kHeaderSize; 279 ASSERT_EQ(kBlockSize - kHeaderSize, WrittenBytes()); 290 const int n = kBlockSize - 2*kHeaderSize; 292 ASSERT_EQ(kBlockSize - kHeaderSize, WrittenBytes()); 302 const int n = kBlockSize - 2*kHeaderSize + 4; 304 ASSERT_EQ(kBlockSize - kHeaderSize + 4, WrittenBytes()); 314 const int n = kBlockSize - 2*kHeaderSize + 4; 316 ASSERT_EQ(kBlockSize - kHeaderSize + 4, WrittenBytes()) [all...] |
log_writer.cc | 37 const int leftover = kBlockSize - block_offset_; 50 assert(kBlockSize - block_offset_ - kHeaderSize >= 0); 52 const size_t avail = kBlockSize - block_offset_ - kHeaderSize; 77 assert(block_offset_ + kHeaderSize + n <= kBlockSize);
|
log_reader.cc | 23 backing_store_(new char[kBlockSize]), 36 size_t offset_in_block = initial_offset_ % kBlockSize; 40 if (offset_in_block > kBlockSize - 6) { 42 block_start_location += kBlockSize; 185 Status status = file_->Read(kBlockSize, &buffer_, backing_store_); 189 ReportDrop(kBlockSize, status); 192 } else if (buffer_.size() < kBlockSize) {
|
/external/skia/gm/ |
bleed.cpp | 113 SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); 130 SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); 147 SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); 164 SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); 185 static const SkScalar kBottom = SkIntToScalar(kRow3Y + kBlockSize + kBlockSpacing); 255 static const int kBlockSize = 70 [all...] |
/external/chromium/sdch/open-vcdiff/src/ |
vcdiffengine.cc | 57 if (!RollingHash<BlockHash::kBlockSize>::Init()) { 165 if (target_size < static_cast<size_t>(BlockHash::kBlockSize)) { 170 RollingHash<BlockHash::kBlockSize> hasher; 184 const char* const start_of_last_block = target_end - BlockHash::kBlockSize; 188 // candidate_pos points to the start of the kBlockSize-byte block that may 228 candidate_pos[BlockHash::kBlockSize]);
|
/external/chromium_org/v8/test/cctest/ |
test-utils.cc | 154 const int kBlockSize = 7; 160 for (int i = 0; i < kBlockSize - 1; i++) { 165 CHECK_EQ(kLoops * (kBlockSize + kSequentialSize), result.length()); 167 int offset = i * (kSequentialSize + kBlockSize); 168 for (int j = 0; j < kBlockSize - 1; j++) { 171 CHECK_EQ(0xbadcafe, result[offset + kBlockSize - 1]); 173 CHECK_EQ(j, result[offset + kBlockSize + j]);
|
/external/v8/test/cctest/ |
test-utils.cc | 143 const int kBlockSize = 7; 149 for (int i = 0; i < kBlockSize - 1; i++) { 154 CHECK_EQ(kLoops * (kBlockSize + kSequentialSize), result.length()); 156 int offset = i * (kSequentialSize + kBlockSize); 157 for (int j = 0; j < kBlockSize - 1; j++) { 160 CHECK_EQ(0xbadcafe, result[offset + kBlockSize - 1]); 162 CHECK_EQ(j, result[offset + kBlockSize + j]);
|
/external/chromium_org/third_party/leveldatabase/src/helpers/memenv/ |
memenv.cc | 65 size_t block = offset / kBlockSize; 66 size_t block_offset = offset % kBlockSize; 68 if (n <= kBlockSize - block_offset) { 78 size_t avail = kBlockSize - block_offset; 100 size_t offset = size_ % kBlockSize; 104 avail = kBlockSize - offset; 107 blocks_.push_back(new char[kBlockSize]); 108 avail = kBlockSize; 145 enum { kBlockSize = 8 * 1024 };
|
/external/chromium_org/ui/app_list/views/ |
pulsing_block_view.cc | 21 const int kBlockSize = 64; 102 rect.ClampToCenteredSize(gfx::Size(kBlockSize, kBlockSize));
|
/external/libvpx/libvpx/test/ |
intrapred_test.cc | 251 static const int kBlockSize = 16; 253 static const int kStride = kBlockSize * 3; 259 static const int kDataBufferSize = kStride * (kBlockSize + 1); 263 SetupMacroblock(mb_, mi_, data_array_, kBlockSize, kStride, 1); 332 static const int kBlockSize = 8; 334 static const int kStride = kBlockSize * 3; 341 static const int kDataBufferSize = 2 * kStride * (kBlockSize + 1); 345 SetupMacroblock(mb_, mi_, data_array_, kBlockSize, kStride, 2);
|
/external/chromium_org/gpu/command_buffer/tests/ |
compressed_texture_test.cc | 33 static const unsigned kBlockSize = 4; 35 static const unsigned kTextureWidth = kBlockSize * kPaletteSize; 36 static const unsigned kTextureHeight = kBlockSize; 236 origin[0] = kBlockSize * i; 239 kBlockSize, kBlockSize,
|
/external/libyuv/files/source/ |
compare.cc | 228 const int kBlockSize = 1 << 15; // 32768; 229 while (count >= static_cast<uint64>(kBlockSize)) { 230 seed = HashDjb2_SSE(src, kBlockSize, seed); 231 src += kBlockSize; 232 count -= kBlockSize; 369 const int kBlockSize = 1 << 15; // 32768; 374 for (int i = 0; i < (count - (kBlockSize - 1)); i += kBlockSize) { 375 sse += SumSquareError(src_a + i, src_b + i, kBlockSize); 377 src_a += count & ~(kBlockSize - 1) [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
SkPerlinNoiseShader.cpp | 24 static const int kBlockSize = 256; 25 static const int kBlockMask = kBlockSize - 1; 97 uint8_t fLatticeSelector[kBlockSize]; 98 uint16_t fNoise[4][kBlockSize][2]; 99 SkPoint fGradient[4][kBlockSize]; 125 static const SkScalar gInvBlockSizef = SkScalarInvert(SkIntToScalar(kBlockSize)); 136 for (int i = 0; i < kBlockSize; ++i) { 138 fNoise[channel][i][0] = (random() % (2 * kBlockSize)); 139 fNoise[channel][i][1] = (random() % (2 * kBlockSize)); 142 for (int i = kBlockSize - 1; i > 0; --i) [all...] |
/external/skia/src/effects/ |
SkPerlinNoiseShader.cpp | 24 static const int kBlockSize = 256; 25 static const int kBlockMask = kBlockSize - 1; 97 uint8_t fLatticeSelector[kBlockSize]; 98 uint16_t fNoise[4][kBlockSize][2]; 99 SkPoint fGradient[4][kBlockSize]; 125 static const SkScalar gInvBlockSizef = SkScalarInvert(SkIntToScalar(kBlockSize)); 136 for (int i = 0; i < kBlockSize; ++i) { 138 fNoise[channel][i][0] = (random() % (2 * kBlockSize)); 139 fNoise[channel][i][1] = (random() % (2 * kBlockSize)); 142 for (int i = kBlockSize - 1; i > 0; --i) [all...] |
/external/chromium_org/crypto/ |
openpgp_symmetric_encryption.cc | 711 static const unsigned kBlockSize = 16; // AES block size 713 uint8 prefix[kBlockSize + 2], fre[kBlockSize], iv[kBlockSize]; 714 crypto::RandBytes(iv, kBlockSize); 726 prefix[kBlockSize] = iv[kBlockSize - 2] ^ fre[0]; 727 prefix[kBlockSize + 1] = iv[kBlockSize - 1] ^ fre[1]; 738 HASH_Update(hash_context, iv + kBlockSize - 2, 2) [all...] |
/external/chromium/net/ftp/ |
ftp_directory_listing_parser_vms.cc | 59 const int kBlockSize = 512; 62 *size *= kBlockSize; 79 *size = blocks_used * kBlockSize;
|
/external/chromium_org/net/ftp/ |
ftp_directory_listing_parser_vms.cc | 66 const int kBlockSize = 512; 71 *size *= kBlockSize; 90 *size = blocks_used * kBlockSize;
|
/external/chromium_org/third_party/libjingle/source/talk/session/tunnel/ |
tunnelsessionclient_unittest.cc | 41 static const int kBlockSize = 4096; 180 char block[kBlockSize]; 193 char block[kBlockSize];
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
pseudotcp_unittest.cc | 42 static const int kBlockSize = 4096; 292 char block[kBlockSize]; 307 char block[kBlockSize]; 411 char block[kBlockSize]; 426 char block[kBlockSize]; 526 char block[kBlockSize]; 554 char block[kBlockSize];
|