Home
last modified time | relevance | path

Searched refs:kSize (Results 1 – 25 of 81) sorted by relevance

1234

/external/chromium/net/disk_cache/
Dentry_unittest.cc582 const int kSize = 200; in GetTimes() local
583 scoped_refptr<net::IOBuffer> buffer(new net::IOBuffer(kSize)); in GetTimes()
584 EXPECT_EQ(kSize, ReadData(entry, 0, 0, buffer, kSize)); in GetTimes()
617 const int kSize = 20000; in GrowData() local
618 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize)); in GrowData()
619 scoped_refptr<net::IOBuffer> buffer2(new net::IOBuffer(kSize)); in GrowData()
620 CacheTestFillBuffer(buffer1->data(), kSize, false); in GrowData()
621 memset(buffer2->data(), 0, kSize); in GrowData()
623 base::strlcpy(buffer1->data(), "the data", kSize); in GrowData()
634 EXPECT_EQ(20000, WriteData(entry, 0, 0, buffer1, kSize, false)); in GrowData()
[all …]
Dbackend_unittest.cc238 const int kSize = 50; in TEST_F() local
239 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize)); in TEST_F()
240 CacheTestFillBuffer(buffer1->data(), kSize, false); in TEST_F()
241 ASSERT_EQ(kSize, file_util::WriteFile(filename, buffer1->data(), kSize)); in TEST_F()
250 scoped_refptr<net::IOBuffer> buffer2(new net::IOBuffer(kSize)); in TEST_F()
251 ASSERT_EQ(kSize, file_util::ReadFile(filename, buffer2->data(), kSize)); in TEST_F()
252 EXPECT_EQ(0, memcmp(buffer1->data(), buffer2->data(), kSize)); in TEST_F()
278 const int kSize = 25000; in TEST_F() local
279 scoped_refptr<net::IOBuffer> buffer(new net::IOBuffer(kSize)); in TEST_F()
280 CacheTestFillBuffer(buffer->data(), kSize, false); in TEST_F()
[all …]
Dstress_cache.cc132 const int kSize = 4000; in StressTheCache() local
133 scoped_refptr<net::IOBuffer> buffer(new net::IOBuffer(kSize)); in StressTheCache()
134 memset(buffer->data(), 'k', kSize); in StressTheCache()
140 int size = kSize - (rand() % 4) * kSize / 4; in StressTheCache()
151 base::snprintf(buffer->data(), kSize, in StressTheCache()
Dblock_files_unittest.cc262 const int kSize = 100; in TEST_F() local
263 Addr address[kSize]; in TEST_F()
264 for (int i = 0; i < kSize; i++) { in TEST_F()
274 for (int i = 0; i < kSize; i++) { in TEST_F()
289 for (int i = 0; i < kSize; i++) { in TEST_F()
/external/astl/tests/
Dtest_uninitialized.cpp77 const size_t kSize = 100; in testCopyClass() local
80 CtorDtorCounter src[kSize]; in testCopyClass()
82 malloc(kSize * sizeof(CtorDtorCounter))); in testCopyClass()
84 EXPECT_TRUE(CtorDtorCounter::mCtorCount == kSize); in testCopyClass()
90 EXPECT_TRUE(uninitialized_copy(src, src + kSize, dest) == dest + kSize); in testCopyClass()
93 EXPECT_TRUE(CtorDtorCounter::mCopyCtorCount == kSize); in testCopyClass()
158 const size_t kSize = 100; in testFillClass() local
163 malloc(kSize * sizeof(CtorDtorCounter))); in testFillClass()
171 uninitialized_fill(dest, dest + kSize, src); in testFillClass()
174 EXPECT_TRUE(CtorDtorCounter::mCopyCtorCount == kSize); in testFillClass()
/external/valgrind/tsan/
Dts_simple_cache.h38 template <int kSize>
48 size_t idx = ptr % kSize; in Insert()
57 size_t idx = ptr % kSize; in Lookup()
65 uintptr_t arr_[kSize];
66 uint32_t bits_[(kSize + 31) / 32];
72 template <int32_t kSize>
103 return (a ^ ((b >> 16) | (b << 16))) % kSize; in idx()
105 uint32_t arr_[kSize * 2];
/external/skia/gm/
Dninepatchstretch.cpp18 const int kSize = 2*kFixed + kStretchy; in make_bitmap() local
21 dev = new SkGpuDevice(ctx, SkBitmap::kARGB_8888_Config, kSize, kSize); in make_bitmap()
24 bitmap->setConfig(SkBitmap::kARGB_8888_Config, kSize, kSize); in make_bitmap()
32 SkRect r = SkRect::MakeWH(SkIntToScalar(kSize), SkIntToScalar(kSize)); in make_bitmap()
43 r.setXYWH(SkIntToScalar(kFixed), 0, SkIntToScalar(kStretchy), SkIntToScalar(kSize)); in make_bitmap()
46 r.setXYWH(0, SkIntToScalar(kFixed), SkIntToScalar(kSize), SkIntToScalar(kStretchy)); in make_bitmap()
/external/skia/samplecode/
DSampleNinePatch.cpp19 const int kSize = 2*kFixed + kStretchy; in make_bitmap() local
22 dev = new SkGpuDevice(ctx, SkBitmap::kARGB_8888_Config, kSize, kSize); in make_bitmap()
25 bitmap->setConfig(SkBitmap::kARGB_8888_Config, kSize, kSize); in make_bitmap()
33 SkRect r = SkRect::MakeWH(SkIntToScalar(kSize), SkIntToScalar(kSize)); in make_bitmap()
44 r.setXYWH(SkIntToScalar(kFixed), 0, SkIntToScalar(kStretchy), SkIntToScalar(kSize)); in make_bitmap()
47 r.setXYWH(0, SkIntToScalar(kFixed), SkIntToScalar(kSize), SkIntToScalar(kStretchy)); in make_bitmap()
/external/chromium/chrome/browser/tab_contents/
Dthumbnail_generator_unittest.cc192 const gfx::Size kSize(20, 10); in TEST() local
193 gfx::CanvasSkia canvas(kSize.width(), kSize.height(), true); in TEST()
195 canvas.FillRectInt(kBlack, 0, 0, kSize.width(), kSize.height()); in TEST()
205 const gfx::Size kSize(20, 10); in TEST() local
207 gfx::CanvasSkia canvas(kSize.width(), kSize.height(), true); in TEST()
209 canvas.FillRectInt(kBlack, 0, 0, kSize.width(), kSize.height()); in TEST()
211 canvas.FillRectInt(kWhite, 0, 0, kSize.width() / 2, kSize.height()); in TEST()
214 ASSERT_EQ(kSize.width(), bitmap.width()); in TEST()
215 ASSERT_EQ(kSize.height(), bitmap.height()); in TEST()
/external/compiler-rt/lib/asan/tests/
Dasan_interface_test.cc291 const size_t kSize = 24; in TEST() local
292 bool expected[kSize]; in TEST()
293 char *arr = Ident((char*)malloc(kSize)); in TEST()
294 for (size_t l1 = 0; l1 < kSize; l1++) { in TEST()
295 for (size_t s1 = 1; l1 + s1 <= kSize; s1++) { in TEST()
296 for (size_t l2 = 0; l2 < kSize; l2++) { in TEST()
297 for (size_t s2 = 1; l2 + s2 <= kSize; s2++) { in TEST()
299 ASAN_UNPOISON_MEMORY_REGION(arr, kSize); in TEST()
302 memset(expected, false, kSize); in TEST()
307 for (size_t i = 0; i < kSize; i++) { in TEST()
[all …]
/external/v8/src/
Dobjects-visiting.cc100 JSSet::kSize); in GetVisitorId()
105 JSMap::kSize); in GetVisitorId()
119 JSProxy::kSize); in GetVisitorId()
124 JSFunctionProxy::kSize); in GetVisitorId()
129 Foreign::kSize); in GetVisitorId()
Dunicode.h65 static const int kSize = size; variable
66 static const int kMask = kSize - 1;
67 CacheEntry entries_[kSize];
91 static const int kSize = size; variable
92 static const int kMask = kSize - 1;
93 CacheEntry entries_[kSize];
220 template <class Reader, class Input = Reader*, unsigned kSize = 256>
241 byte util_buffer_[kSize];
Ddateparser.h342 return index_ < kSize ? (comp_[index_++] = n, true) : false; in Add()
346 while (index_ < kSize) comp_[index_++] = 0; in AddFinal()
360 static const int kSize = 4; variable
361 int comp_[kSize];
371 if (index_ < kSize) { in Add()
385 static const int kSize = 3;
386 int comp_[kSize];
Dobjects.h345 ConsString::kSize, \
349 ConsString::kSize, \
353 ExternalTwoByteString::kSize, \
357 ExternalTwoByteString::kSize, \
361 ExternalAsciiString::kSize, \
385 ConsString::kSize, \
389 ConsString::kSize, \
393 SlicedString::kSize, \
397 SlicedString::kSize, \
401 ExternalTwoByteString::kSize, \
[all …]
Dcontexts.h428 static const int kSize = kHeaderSize + GLOBAL_CONTEXT_SLOTS * kPointerSize; variable
432 kHeaderSize, kSize, kSize> ScavengeBodyDescriptor;
437 kSize> MarkCompactBodyDescriptor;
Dspaces.h178 static const size_t kSize = variable
495 CODE_POINTER_ALIGN(MAP_POINTER_ALIGN(kHeaderSize + Bitmap::kSize));
893 for (int idx = 0; idx < kSize; idx++) { in Clear()
928 static const int kSize = Page::kPageSize / kRegionSize; variable
932 Address starts_[kSize];
2393 : FixedSpace(heap, max_capacity, id, Map::kSize, "map"), in MapSpace()
2402 if (IsPowerOf2(Map::kSize)) { in RoundSizeDownToObjectAlignment()
2403 return RoundDown(size, Map::kSize); in RoundSizeDownToObjectAlignment()
2405 return (size / Map::kSize) * Map::kSize; in RoundSizeDownToObjectAlignment()
2415 static const int kMapsPerPage = Page::kNonCodeObjectAreaSize / Map::kSize;
[all …]
Dstore-buffer.cc457 return page + (((addr - page) + (Map::kSize - 1)) / Map::kSize * Map::kSize); in MapStartAlign()
464 return page + ((addr - page) / Map::kSize * Map::kSize); in MapEndAlign()
486 map_address += Map::kSize; in FindPointersToNewSpaceInMaps()
Dglobal-handles.cc281 static const int kSize = 256; member in v8::internal::GlobalHandles::NodeBlock
287 for (int i = kSize - 1; i >= 0; --i) { in PutNodesOnFreeList()
293 ASSERT(0 <= index && index < kSize); in node_at()
298 ASSERT(used_nodes_ < kSize); in IncreaseUses()
328 Node nodes_[kSize];
370 if (++index_ < NodeBlock::kSize) return; in Advance()
Dutils.h455 template <typename T, int kSize>
458 EmbeddedVector() : Vector<T>(buffer_, kSize) { } in EmbeddedVector()
460 explicit EmbeddedVector(T initial_value) : Vector<T>(buffer_, kSize) { in EmbeddedVector()
461 for (int i = 0; i < kSize; ++i) { in EmbeddedVector()
469 memcpy(buffer_, rhs.buffer_, sizeof(T) * kSize); in EmbeddedVector()
476 memcpy(buffer_, rhs.buffer_, sizeof(T) * kSize);
482 T buffer_[kSize];
Ddateparser.cc38 while (index_ < kSize) { in Write()
90 while (index_ < kSize) { in Write()
Dbootstrapper.cc428 Handle<Map> map = factory()->NewMap(JS_FUNCTION_TYPE, JSFunction::kSize); in CreateFunctionMap()
597 Handle<Map> map = factory()->NewMap(JS_FUNCTION_TYPE, JSFunction::kSize); in CreateStrictModeFunctionMap()
735 JSGlobalObject::kSize, code, true); in CreateNewGlobals()
768 JSGlobalProxy::kSize, code, true); in CreateNewGlobals()
858 InstallFunction(global, "Function", JS_FUNCTION_TYPE, JSFunction::kSize, in InitializeGlobal()
863 InstallFunction(global, "Array", JS_ARRAY_TYPE, JSArray::kSize, in InitializeGlobal()
890 InstallFunction(global, "Number", JS_VALUE_TYPE, JSValue::kSize, in InitializeGlobal()
898 InstallFunction(global, "Boolean", JS_VALUE_TYPE, JSValue::kSize, in InitializeGlobal()
906 InstallFunction(global, "String", JS_VALUE_TYPE, JSValue::kSize, in InitializeGlobal()
930 InstallFunction(global, "Date", JS_DATE_TYPE, JSDate::kSize, in InitializeGlobal()
[all …]
/external/valgrind/unittest/
Dtest_utils.h88 static const int kSize = 5;
98 for(int i = 0; i < kSize; i++) { in Start()
107 for(int i = 0; i < kSize; i++) { in Join()
115 for(int i = 0; i < kSize; i++) { in ~MyThreadArray()
120 MyThread *ar_[kSize];
/external/chromium/net/data/cache_tests/dirty_entry5/
Dcontents.txt154 const int kSize = 20;
156 scoped_refptr<net::IOBuffer> buf = new net::IOBuffer(kSize);
157 memset(buf->data(), 0, kSize);
158 EXPECT_EQ(kSize, WriteData(entry, 0, 0, buf, kSize, false));
/external/skia/src/core/
DSkAAClip.h124 kSize = 32 * 32 enumerator
126 SkAutoSMalloc<kSize> fGrayMaskScratch; // used for blitMask
/external/skia/include/core/
DSkTypes.h494 template <size_t kSize> class SkAutoSMalloc : SkNoncopyable {
552 if (size <= kSize) {
563 uint32_t fStorage[(kSize + 3) >> 2];

1234