Home
last modified time | relevance | path

Searched refs:kBufferSize (Results 1 – 25 of 64) sorted by relevance

123

/external/v8/test/cctest/
Dtest-bignum.cc39 static const int kBufferSize = 1024; variable
52 char buffer[kBufferSize]; in TEST()
56 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
59 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
62 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
67 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
70 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
73 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
76 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
81 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
[all …]
Dtest-fast-dtoa.cc42 static const int kBufferSize = 100; variable
57 char buffer_container[kBufferSize]; in TEST()
58 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
127 char buffer_container[kBufferSize]; in TEST()
128 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
228 char buffer_container[kBufferSize]; in TEST()
229 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
257 char buffer_container[kBufferSize]; in TEST()
258 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
Dtest-bignum-dtoa.cc56 static const int kBufferSize = 100; variable
60 char buffer_container[kBufferSize]; in TEST()
61 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
258 char buffer_container[kBufferSize]; in TEST()
259 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
276 char buffer_container[kBufferSize]; in TEST()
277 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
297 char buffer_container[kBufferSize]; in TEST()
298 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
Dtest-dtoa.cc56 static const int kBufferSize = 100; variable
60 char buffer_container[kBufferSize]; in TEST()
61 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
268 char buffer_container[kBufferSize]; in TEST()
269 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
288 char buffer_container[kBufferSize]; in TEST()
289 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
311 char buffer_container[kBufferSize]; in TEST()
312 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
/external/google-breakpad/src/common/
Dmemory_range_unittest.cc41 const size_t kBufferSize = sizeof(kBuffer); variable
52 { true, 0, kBufferSize },
55 { true, 2, kBufferSize - 2 },
56 { true, kBufferSize - 1, 1 },
57 { false, kBufferSize, 0 },
58 { false, kBufferSize, static_cast<size_t>(-1) },
59 { false, kBufferSize + 1, 0 },
61 { false, 1, kBufferSize },
62 { false, kBufferSize - 1, 2 },
78 { 0, 1, kBufferSize - 1, kBufferPointer + kBufferSize - 1 },
[all …]
/external/google-breakpad/src/tools/linux/md2core/
Dminidump_memory_range_unittest.cc42 const size_t kBufferSize = sizeof(kBuffer); variable
53 { true, 0, kBufferSize },
56 { true, 2, kBufferSize - 2 },
57 { true, kBufferSize - 1, 1 },
58 { false, kBufferSize, 0 },
59 { false, kBufferSize, static_cast<size_t>(-1) },
60 { false, kBufferSize + 1, 0 },
62 { false, 1, kBufferSize },
63 { false, kBufferSize - 1, 2 },
79 { 0, 1, kBufferSize - 1, kBufferPointer + kBufferSize - 1 },
[all …]
/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_unittest.cc271 const int kBufferSize = 256; in TEST_F() local
272 uint8 buffer[kBufferSize]; in TEST_F()
278 ArrayOutputStream output(buffer, kBufferSize, kBlockSizes[i]); in TEST_F()
294 const int kBufferSize = 2*1024; in TEST_F() local
295 uint8* buffer = new uint8[kBufferSize]; in TEST_F()
301 new ArrayOutputStream(buffer, kBufferSize, kBlockSizes[i]); in TEST_F()
309 buffer + pos, kBufferSize - pos, kBlockSizes[i]); in TEST_F()
342 const int kBufferSize = 2*1024; in TEST_F() local
343 uint8* buffer = new uint8[kBufferSize]; in TEST_F()
350 ArrayOutputStream output(buffer, kBufferSize, kBlockSizes[i]); in TEST_F()
[all …]
/external/lzma/CPP/Common/
DMyString.cpp27 const int kBufferSize = 4; in MyCharUpper() local
28 char s[kBufferSize + 1]; in MyCharUpper()
29 int numChars = ::WideCharToMultiByte(CP_ACP, 0, &c, 1, s, kBufferSize, 0, 0); in MyCharUpper()
30 if (numChars == 0 || numChars > kBufferSize) in MyCharUpper()
45 const int kBufferSize = 4; in MyCharLower() local
46 char s[kBufferSize + 1]; in MyCharLower()
47 int numChars = ::WideCharToMultiByte(CP_ACP, 0, &c, 1, s, kBufferSize, 0, 0); in MyCharLower()
48 if (numChars == 0 || numChars > kBufferSize) in MyCharLower()
/external/v8/src/
Dunicode-inl.h168 template<unsigned kBufferSize>
169 Utf8Decoder<kBufferSize>::Utf8Decoder(const char* stream, unsigned length) in Utf8Decoder()
171 kBufferSize, in Utf8Decoder()
176 template<unsigned kBufferSize>
177 void Utf8Decoder<kBufferSize>::Reset(const char* stream, unsigned length) { in Reset()
179 kBufferSize, in Reset()
184 template <unsigned kBufferSize>
185 unsigned Utf8Decoder<kBufferSize>::WriteUtf16(uint16_t* data, in WriteUtf16()
191 last_byte_of_buffer_unused_ ? kBufferSize - 1 : kBufferSize; in WriteUtf16()
Dscanner-character-streams.cc82 buffer_end_ = buffer_ + kBufferSize; in SlowPushBack()
151 unsigned length = kBufferSize; in FillBuffer()
222 unsigned i = CopyChars(buffer_, kBufferSize, raw_data_, &raw_data_pos_, in FillBuffer()
326 while (data_in_buffer < kBufferSize - 1) { in FillBuffer()
364 CopyCharsHelper(buffer_ + data_in_buffer, kBufferSize - data_in_buffer, in FillBuffer()
369 DCHECK(data_in_buffer <= kBufferSize); in FillBuffer()
402 kBufferSize - *data_in_buffer, utf8_split_char_buffer_, in HandleUtf8SplitCharacters()
407 DCHECK(*data_in_buffer <= kBufferSize); in HandleUtf8SplitCharacters()
Dconversions.cc422 static const int kBufferSize = 1100; in DoubleToRadixCString() local
423 char integer_buffer[kBufferSize]; in DoubleToRadixCString()
424 integer_buffer[kBufferSize - 1] = '\0'; in DoubleToRadixCString()
428 char decimal_buffer[kBufferSize]; in DoubleToRadixCString()
429 decimal_buffer[kBufferSize - 1] = '\0'; in DoubleToRadixCString()
441 int integer_pos = kBufferSize - 2; in DoubleToRadixCString()
463 while ((decimal_part > 0.0) && (decimal_pos < kBufferSize - 1)) { in DoubleToRadixCString()
472 int integer_part_size = kBufferSize - 2 - integer_pos; in DoubleToRadixCString()
Dconversions-inl.h329 const int kBufferSize = kMaxSignificantDigits + 2; in InternalStringToInt() local
330 char buffer[kBufferSize]; in InternalStringToInt()
336 DCHECK(buffer_pos < kBufferSize); in InternalStringToInt()
348 SLOW_DCHECK(buffer_pos < kBufferSize); in InternalStringToInt()
444 const int kBufferSize = kMaxSignificantDigits + 10; in InternalStringToDouble() local
445 char buffer[kBufferSize]; // NOLINT: size is known at compile time. in InternalStringToDouble()
548 DCHECK(buffer_pos < kBufferSize); in InternalStringToDouble()
593 DCHECK(buffer_pos < kBufferSize); in InternalStringToDouble()
685 SLOW_DCHECK(buffer_pos < kBufferSize); in InternalStringToDouble()
/external/skia/src/core/
DSkFlate.cpp23 const size_t kBufferSize = 1024; variable
34 uint8_t inputBuffer[kBufferSize]; in doFlate()
35 uint8_t outputBuffer[kBufferSize]; in doFlate()
43 flateData.avail_out = kBufferSize; in doFlate()
65 if (flateData.avail_out < kBufferSize) { in doFlate()
66 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in doFlate()
71 flateData.avail_out = kBufferSize; in doFlate()
78 size_t read = src->read(&inputBuffer, kBufferSize); in doFlate()
94 if (flateData.avail_out < kBufferSize) { in doFlate()
95 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) in doFlate()
[all …]
DSkString.cpp18 static const size_t kBufferSize = 1024; variable
540 char buffer[kBufferSize]; in printf()
542 ARGS_TO_BUFFER(format, buffer, kBufferSize, length); in printf()
548 char buffer[kBufferSize]; in appendf()
550 ARGS_TO_BUFFER(format, buffer, kBufferSize, length); in appendf()
556 char buffer[kBufferSize]; in appendVAList()
557 int length = VSNPRINTF(buffer, kBufferSize, format, args); in appendVAList()
558 SkASSERT(length >= 0 && length < SkToInt(kBufferSize)); in appendVAList()
564 char buffer[kBufferSize]; in prependf()
566 ARGS_TO_BUFFER(format, buffer, kBufferSize, length); in prependf()
[all …]
/external/skia/src/images/
DSkJpegUtility.h45 kBufferSize = 1024 enumerator
47 char fBuffer[kBufferSize];
60 kBufferSize = 1024 enumerator
62 uint8_t fBuffer[kBufferSize];
DSkJpegUtility.cpp53 size_t bytes = src->fStream->read(src->fBuffer, skjpeg_source_mgr::kBufferSize); in sk_fill_input_buffer()
119 dest->free_in_buffer = skjpeg_destination_mgr::kBufferSize; in sk_init_destination()
127 skjpeg_destination_mgr::kBufferSize)) { in sk_empty_output_buffer()
133 dest->free_in_buffer = skjpeg_destination_mgr::kBufferSize; in sk_empty_output_buffer()
140 size_t size = skjpeg_destination_mgr::kBufferSize - dest->free_in_buffer; in sk_term_destination()
/external/v8/src/base/platform/
Dsemaphore-unittest.cc19 static const size_t kBufferSize = 987; // GCD(buffer size, alphabet size) = 1 variable
20 static const size_t kDataSize = kBufferSize * kAlphabetSize * 10;
35 buffer_[n % kBufferSize] = kAlphabet[n % kAlphabetSize]; in Run()
60 EXPECT_EQ(kAlphabet[n % kAlphabetSize], buffer_[n % kBufferSize]); in Run()
94 char buffer[kBufferSize]; in TEST()
96 Semaphore free_space(kBufferSize); in TEST()
/external/libvpx/libvpx/test/
Dvp8_boolcoder_test.cc78 const int kBufferSize = 10000; in TEST() local
81 uint8_t bw_buffer[kBufferSize]; in TEST()
82 vp8_start_encode(&bw, bw_buffer, bw_buffer + kBufferSize); in TEST()
97 encrypt_buffer(bw_buffer, kBufferSize); in TEST()
98 vp8dx_start_decode(&br, bw_buffer, kBufferSize, in TEST()
Dvp9_boolcoder_test.cc51 const int kBufferSize = 10000; in TEST() local
54 uint8_t bw_buffer[kBufferSize]; in TEST()
73 vp9_reader_init(&br, bw_buffer, kBufferSize, NULL, NULL); in TEST()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_symbolizer_posix_libcdep.cc187 internal_snprintf(buffer_, kBufferSize, "%s\"%s\" 0x%zx\n", in SendCommand()
193 static const uptr kBufferSize = 16 * 1024; member in __sanitizer::LLVMSymbolizer
194 char buffer_[kBufferSize];
260 char buffer_[kBufferSize]; in SendCommand()
261 internal_snprintf(buffer_, kBufferSize, "0x%zx\n", module_offset); in SendCommand()
265 static const uptr kBufferSize = 32; member in __sanitizer::Addr2LinePool
298 stack->info.module, stack->info.module_offset, buffer_, kBufferSize); in SymbolizePC()
305 buffer_, kBufferSize); in SymbolizeData()
339 static const int kBufferSize = 16 * 1024; member in __sanitizer::InternalSymbolizer
341 char buffer_[kBufferSize];
/external/skia/src/ports/
DSkDebug_win.cpp13 static const size_t kBufferSize = 2048; variable
20 char buffer[kBufferSize + 1]; in SkDebugf()
31 vsnprintf(buffer, kBufferSize, format, args); in SkDebugf()
DSkDebug_nacl.cpp13 static const size_t kBufferSize = 2048; variable
29 char buffer[kBufferSize + 1]; in SkDebugf()
33 vsnprintf(buffer + strlen(kLogPrefix), kBufferSize, format, args); in SkDebugf()
/external/zlib/src/contrib/dotzlib/DotZLib/
DCodecBase.cs35 protected const int kBufferSize = 16384; field in DotZLib.CodecBase
37 private byte[] _outBuffer = new byte[kBufferSize];
38 private byte[] _inBuffer = new byte[kBufferSize];
183 _ztream.avail_out = kBufferSize; in resetOutput()
/external/lzma/CPP/7zip/Compress/
DCopyCoder.cpp13 static const UInt32 kBufferSize = 1 << 17; variable
27 _buffer = (Byte *)::MidAlloc(kBufferSize); in Code()
35 UInt32 size = kBufferSize; in Code()
/external/lzma/Java/SevenZip/
DLzmaBench.java309 int kBufferSize = dictionarySize + kAdditionalSize; in LzmaBenchmark() local
310 int kCompressedBufferSize = (kBufferSize / 2) + kCompressedAdditionalSize; in LzmaBenchmark()
319 rg.Set(kBufferSize); in LzmaBenchmark()
365 long outSize = kBufferSize; in LzmaBenchmark()
373 long benchSize = kBufferSize - (long)progressInfo.InSize; in LzmaBenchmark()
376 PrintResults(dictionarySize, decodeTime, kBufferSize, true, compressedSize); in LzmaBenchmark()
388 kBufferSize * (long)numIterations, true, totalCompressedSize); in LzmaBenchmark()

123