Searched refs:kSize (Results 1 - 25 of 185) sorted by relevance

12345678

/external/chromium_org/third_party/webrtc/base/
H A Dstream_unittest.cc162 const size_t kSize = 16; local
163 const char in[kSize * 2 + 1] = "0123456789ABCDEFGHIJKLMNOPQRSTUV";
164 char out[kSize * 2];
168 FifoBuffer buf(kSize);
173 EXPECT_EQ(SR_BLOCK, stream->Read(out, kSize, &bytes, NULL));
178 EXPECT_EQ(kSize, bytes);
182 EXPECT_EQ(SR_SUCCESS, stream->Write(in, kSize, &bytes, NULL));
183 EXPECT_EQ(kSize, bytes);
186 EXPECT_EQ(SR_BLOCK, stream->Write(in, kSize, &bytes, NULL));
189 EXPECT_EQ(SR_SUCCESS, stream->Read(out, kSize,
390 const size_t kSize = 16; local
[all...]
H A Dmd5digest.h22 enum { kSize = 16 }; enumerator in enum:rtc::Md5Digest::__anon15672
27 return kSize;
33 if (len < kSize) {
38 return kSize;
H A Dsha1digest.h22 enum { kSize = SHA1_DIGEST_SIZE }; enumerator in enum:rtc::Sha1Digest::__anon15690
27 return kSize;
33 if (len < kSize) {
38 return kSize;
/external/compiler-rt/test/asan/TestCases/
H A Dmalloc_fill.cc10 static const int kSize = 1 << 25; local
11 unsigned char *x = new unsigned char[kSize];
H A Dstack-use-after-return.cc21 #ifndef kSize
22 # define kSize 1 macro
41 char local[kSize];
/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dcrazy_linker_ashmem_unittest.cpp20 const size_t kSize = 4096 * 10; local
21 EXPECT_TRUE(region.Allocate(kSize, __FUNCTION__));
23 kSize,
30 for (size_t n = 0; n < kSize; ++n) {
35 EXPECT_EQ(0, ::munmap(map, kSize));
/external/compiler-rt/test/tsan/
H A Dbarrier.cc10 const int kSize = 4; variable
12 int data[2][kSize];
21 int right = idx + 1 < kSize ? prev[idx + 1] : 0;
29 pthread_barrier_init(&barrier, 0, kSize);
30 pthread_t th[kSize];
31 for (int i = 0; i < kSize; i++)
33 for (int i = 0; i < kSize; i++)
/external/chromium_org/third_party/webrtc/common_audio/
H A Daudio_util_unittest.cc30 const int kSize = 7; local
31 const float kInput[kSize] = {
33 const int16_t kReference[kSize] = {0, 0, 1, 0, -1, 32767, -32768};
34 int16_t output[kSize];
35 RoundToInt16(kInput, kSize, output);
36 ExpectArraysEq(kReference, output, kSize);
40 const int kSize = 9; local
41 const float kInput[kSize] = {
44 const int16_t kReference[kSize] = {
46 int16_t output[kSize];
52 const int kSize = 7; local
[all...]
H A Dwav_header_unittest.cc53 static const int kSize = 4 + webrtc::kWavHeaderSize + 4; local
54 uint8_t buf[kSize];
75 COMPILE_ASSERT(sizeof(kExpectedBuf) == kSize, buf_size);
76 EXPECT_EQ(0, memcmp(kExpectedBuf, buf, kSize));
/external/chromium_org/cc/debug/
H A Dring_buffer.h12 template<typename T, size_t kSize>
20 return kSize;
63 if (index_ == kSize)
80 Iterator(const RingBuffer<T, kSize>& buffer, size_t index)
86 const RingBuffer<T, kSize>& buffer_;
90 friend class RingBuffer<T, kSize>;
95 // for (RingBuffer<T, kSize>::Iterator it = ring_buffer.Begin(); it; ++it) {}
97 if (current_index_ < kSize)
98 return Iterator(*this, kSize - current_index_);
104 // for (RingBuffer<T, kSize>
[all...]
/external/chromium_org/third_party/brotli/src/brotli/enc/
H A Dentropy_encode.h61 template<int kSize>
64 uint8_t depth_[kSize];
66 uint16_t bits_[kSize];
73 template<int kSize>
74 void BuildEntropyCode(const Histogram<kSize>& histogram,
77 EntropyCode<kSize>* code) {
83 for (int i = 0; i < kSize; ++i) {
90 int counts[kSize];
91 memcpy(counts, &histogram.data_[0], sizeof(counts[0]) * kSize);
H A Dbit_cost.h108 template<int kSize>
109 double PopulationCost(const Histogram<kSize>& histogram) {
114 for (int i = 0; i < kSize && count < 5; ++i) {
125 uint8_t depth[kSize] = { 0 };
126 CreateHuffmanTree(&histogram.data_[0], kSize, 15, depth);
128 for (int i = 0; i < kSize; ++i) {
136 bits += HuffmanBitCost(depth, kSize);
/external/chromium_org/gpu/command_buffer/client/
H A Dfenced_allocator_test.cc127 const unsigned int kSize = 16; local
128 FencedAllocator::Offset offset = allocator_->Alloc(kSize);
131 EXPECT_GE(kBufferSize, offset+kSize);
151 const unsigned int kSize = 16; local
152 const unsigned int kAllocCount = kBufferSize / kSize;
153 CHECK(kAllocCount * kSize == kBufferSize);
158 offsets[i] = allocator_->Alloc(kSize);
160 EXPECT_GE(kBufferSize, offsets[i]+kSize);
165 FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize);
172 offsets[0] = allocator_->Alloc(kSize/
193 const unsigned int kSize = 16; local
241 const unsigned int kSize = 16; local
311 const unsigned int kSize = 16; local
354 const unsigned int kSize = 16; local
497 const unsigned int kSize = 16; local
563 const unsigned int kSize = 16; local
603 const unsigned int kSize = 16; local
[all...]
H A Dmapped_memory_unittest.cc130 const unsigned int kSize = 16; local
135 void *pointer = chunk_->Alloc(kSize);
139 static_cast<uint8*>(pointer) - buffer_memory() + kSize);
140 EXPECT_EQ(kBufferSize - kSize, chunk_->GetLargestFreeSizeWithoutWaiting());
141 EXPECT_EQ(kBufferSize - kSize, chunk_->GetLargestFreeSizeWithWaiting());
148 uint8 *pointer_char = static_cast<uint8*>(chunk_->Alloc(kSize));
151 EXPECT_GE(buffer_memory() + kBufferSize, pointer_char + kSize); local
152 EXPECT_EQ(kBufferSize - kSize, chunk_->GetLargestFreeSizeWithoutWaiting());
153 EXPECT_EQ(kBufferSize - kSize, chunk_->GetLargestFreeSizeWithWaiting());
183 const unsigned int kSize local
227 const unsigned int kSize = 128; local
292 const unsigned int kSize = 1024; local
353 const unsigned int kSize = 1024; local
419 const unsigned int kSize = 1024; local
[all...]
/external/chromium_org/gpu/command_buffer/tests/
H A Dgl_stream_draw_unittest.cc20 static const int kSize = 4; member in class:gpu::GLStreamDrawTest
24 options.size = gfx::Size(kSize, kSize);
77 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, kSize, kSize, 0, expected_red));
80 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, kSize, kSize, 0, expected_green));
106 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, kSize, kSize, 0, expected_red));
112 EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, kSize, kSiz
[all...]
/external/chromium_org/third_party/skia/gm/
H A Dxfermodes3.cpp62 SkAutoTUnref<SkCanvas> tempCanvas(this->possiblyCreateTempCanvas(canvas, kSize, kSize));
68 {SkPaint::kStroke_Style, SkIntToScalar(kSize) / 2},
76 SkIntToScalar(y + kSize + 3) + labelP.getTextSize(),
85 this->drawMode(canvas, x, y, kSize, kSize, modePaint, tempCanvas.get());
88 x += kSize + 10;
91 y += kSize + 30;
102 this->drawMode(canvas, x, y, kSize, kSize, modePain
233 kSize = 30, enumerator in enum:skiagm::Xfermodes3GM::__anon15067
[all...]
H A Dxfermodes2.cpp32 const SkScalar w = SkIntToScalar(kSize);
33 const SkScalar h = SkIntToScalar(kSize);
108 dstBmp.allocN32Pixels(kSize, kSize);
111 for (int y = 0; y < kSize; ++y) {
114 for (int x = 0; x < kSize; ++x) {
115 pixels[kSize * y + x] = rowColor;
122 srcBmp.allocN32Pixels(kSize, kSize);
125 for (int x = 0; x < kSize;
139 kSize = 256 >> kShift, enumerator in enum:skiagm::Xfermodes2GM::__anon15065
[all...]
/external/skia/gm/
H A Dxfermodes3.cpp61 SkAutoTUnref<SkCanvas> tempCanvas(this->possiblyCreateTempCanvas(canvas, kSize, kSize));
67 {SkPaint::kStroke_Style, SkIntToScalar(kSize) / 2},
75 SkIntToScalar(y + kSize + 3) + labelP.getTextSize(),
84 this->drawMode(canvas, x, y, kSize, kSize, modePaint, tempCanvas.get());
87 x += kSize + 10;
90 y += kSize + 30;
101 this->drawMode(canvas, x, y, kSize, kSize, modePain
232 kSize = 30, enumerator in enum:skiagm::Xfermodes3GM::__anon30479
[all...]
H A Dxfermodes2.cpp32 const SkScalar w = SkIntToScalar(kSize);
33 const SkScalar h = SkIntToScalar(kSize);
107 dstBmp.allocN32Pixels(kSize, kSize);
110 for (int y = 0; y < kSize; ++y) {
113 for (int x = 0; x < kSize; ++x) {
114 pixels[kSize * y + x] = rowColor;
121 srcBmp.allocN32Pixels(kSize, kSize);
124 for (int x = 0; x < kSize;
138 kSize = 256 >> kShift, enumerator in enum:skiagm::Xfermodes2GM::__anon30477
[all...]
/external/chromium_org/courgette/third_party/
H A Dpaged_array_unittest.cc14 static const int kSize = 200 * 1024 * 1024 / sizeof(int); // 200MB member in class:PagedArrayTest
20 EXPECT_TRUE(a.Allocate(kSize));
27 EXPECT_TRUE(a.Allocate(kSize));
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/tools/
H A Daudio_checksum.h45 checksum_.Finish(checksum_result_, rtc::Md5Digest::kSize);
47 return rtc::hex_encode(checksum_result_, rtc::Md5Digest::kSize);
52 char checksum_result_[rtc::Md5Digest::kSize];
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_addrhashmap.h25 // T must be a POD type, kSize is preferably a prime but can be any number.
43 template<typename T, uptr kSize>
70 Handle(AddrHashMap<T, kSize> *map, uptr addr);
71 Handle(AddrHashMap<T, kSize> *map, uptr addr, bool remove);
72 Handle(AddrHashMap<T, kSize> *map, uptr addr, bool remove, bool create);
80 friend AddrHashMap<T, kSize>;
81 AddrHashMap<T, kSize> *map_;
100 template<typename T, uptr kSize>
101 AddrHashMap<T, kSize>::Handle::Handle(AddrHashMap<T, kSize> *ma
[all...]
/external/chromium_org/net/disk_cache/
H A Dentry_unittest.cc785 const int kSize = 200;
786 scoped_refptr<net::IOBuffer> buffer(new net::IOBuffer(kSize));
787 EXPECT_EQ(kSize, ReadData(entry, stream_index, 0, buffer.get(), kSize));
829 const int kSize = 20000;
830 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize));
831 scoped_refptr<net::IOBuffer> buffer2(new net::IOBuffer(kSize));
832 CacheTestFillBuffer(buffer1->data(), kSize, false);
833 memset(buffer2->data(), 0, kSize);
835 base::strlcpy(buffer1->data(), "the data", kSize);
[all...]
/external/llvm/unittests/Support/
H A DCompressionTest.cpp49 const size_t kSize = 1024; local
50 char BinaryData[kSize];
51 for (size_t i = 0; i < kSize; ++i) {
54 StringRef BinaryDataStr(BinaryData, kSize);
/external/qemu/android/filesystems/
H A Dext4_utils.cpp31 static const size_t kSize = 2U; member in struct:Ext4Magic
32 static const uint8_t kExpected[kSize];
35 const uint8_t Ext4Magic::kExpected[kSize] = { 0x53, 0xef };
55 char magic[Ext4Magic::kSize];

Completed in 7034 milliseconds

12345678