Home
last modified time | relevance | path

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

1234567891011

/external/webrtc/webrtc/base/
Dstream_unittest.cc98 const size_t kSize = 16; in TEST() local
99 const char in[kSize * 2 + 1] = "0123456789ABCDEFGHIJKLMNOPQRSTUV"; in TEST()
100 char out[kSize * 2]; in TEST()
104 FifoBuffer buf(kSize); in TEST()
109 EXPECT_EQ(SR_BLOCK, stream->Read(out, kSize, &bytes, NULL)); in TEST()
114 EXPECT_EQ(kSize, bytes); in TEST()
118 EXPECT_EQ(SR_SUCCESS, stream->Write(in, kSize, &bytes, NULL)); in TEST()
119 EXPECT_EQ(kSize, bytes); in TEST()
122 EXPECT_EQ(SR_BLOCK, stream->Write(in, kSize, &bytes, NULL)); in TEST()
125 EXPECT_EQ(SR_SUCCESS, stream->Read(out, kSize, &bytes, NULL)); in TEST()
[all …]
Dbufferqueue_unittest.cc17 const size_t kSize = 16; in TEST() local
18 const char in[kSize * 2 + 1] = "0123456789ABCDEFGHIJKLMNOPQRSTUV"; in TEST()
19 char out[kSize * 2]; in TEST()
21 BufferQueue queue1(1, kSize); in TEST()
22 BufferQueue queue2(2, kSize); in TEST()
26 EXPECT_FALSE(queue1.ReadFront(out, kSize, &bytes)); in TEST()
29 EXPECT_TRUE(queue1.WriteBack(in, kSize, &bytes)); in TEST()
30 EXPECT_EQ(kSize, bytes); in TEST()
34 EXPECT_FALSE(queue1.WriteBack(in, kSize, &bytes)); in TEST()
38 EXPECT_TRUE(queue1.ReadFront(out, kSize, &bytes)); in TEST()
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cES31CompatibilityShaderImageLoadStoreTests.cpp212 …bool CompareValues(T* map_data, int kSize, const T& expected_value, GLenum internalformat = 0, int… in CompareValues() argument
214 for (int i = 0; i < kSize * kSize * layers; ++i) in CompareValues()
227 …bool CompareValues(bool always, T* map_data, int kSize, const T& expected_value, GLenum internalfo… in CompareValues() argument
231 for (int i = 0; i < kSize * kSize * layers; ++i) in CompareValues()
1150 const int kSize = 11; in Write() local
1151 std::vector<T> data(kSize * kSize); in Write()
1160 glTexStorage2D(GL_TEXTURE_2D, 1, internalformat, kSize, kSize); in Write()
1163 glViewport(0, 0, kSize, kSize); in Write()
1172 std::vector<T> out_data(kSize * kSize); in Write()
1176 glBufferData(GL_SHADER_STORAGE_BUFFER, kSize * kSize * 4 * 4, &out_data[0], GL_STATIC_DRAW); in Write()
[all …]
/external/deqp/external/openglcts/modules/gles31/
Des31cShaderImageLoadStoreTests.cpp206 …bool CompareValues(T* map_data, int kSize, const T& expected_value, GLenum internalformat = 0, int… in CompareValues() argument
208 for (int i = 0; i < kSize * kSize * layers; ++i) in CompareValues()
221 …bool CompareValues(bool always, T* map_data, int kSize, const T& expected_value, GLenum internalfo… in CompareValues() argument
225 for (int i = 0; i < kSize * kSize * layers; ++i) in CompareValues()
1116 const int kSize = 11; in Write() local
1117 std::vector<T> data(kSize * kSize); in Write()
1126 glTexStorage2D(GL_TEXTURE_2D, 1, internalformat, kSize, kSize); in Write()
1129 glViewport(0, 0, kSize, kSize); in Write()
1138 std::vector<T> out_data(kSize * kSize); in Write()
1142 glBufferData(GL_SHADER_STORAGE_BUFFER, kSize * kSize * 4 * 4, &out_data[0], GL_STATIC_DRAW); in Write()
[all …]
/external/webrtc/webrtc/common_audio/
Daudio_util_unittest.cc34 const size_t kSize = 9; in TEST() local
35 const float kInput[kSize] = {0.f, in TEST()
44 const int16_t kReference[kSize] = {0, 0, 1, 0, -1, in TEST()
46 int16_t output[kSize]; in TEST()
47 FloatToS16(kInput, kSize, output); in TEST()
48 ExpectArraysEq(kReference, output, kSize); in TEST()
52 const size_t kSize = 7; in TEST() local
53 const int16_t kInput[kSize] = {0, 1, -1, 16384, -16384, 32767, -32768}; in TEST()
54 const float kReference[kSize] = { in TEST()
56 float output[kSize]; in TEST()
[all …]
/external/perfetto/src/base/
Dpaged_memory_unittest.cc37 const size_t kSize = 4096 * kNumPages; in TEST() local
40 PagedMemory mem = PagedMemory::Allocate(kSize); in TEST()
44 for (size_t i = 0; i < kSize / sizeof(uint64_t); i++) in TEST()
48 ASSERT_TRUE(vm_test_utils::IsMapped(ptr_raw, kSize)); in TEST()
53 ASSERT_TRUE(mem.AdviseDontNeed(ptr_raw, kSize)); in TEST()
56 ASSERT_FALSE(vm_test_utils::IsMapped(ptr_raw, kSize)); in TEST()
62 ASSERT_FALSE(vm_test_utils::IsMapped(ptr_raw, kSize)); in TEST()
68 constexpr size_t kSize = 4096 * kNumPages; in TEST() local
71 PagedMemory mem = PagedMemory::Allocate(kSize, PagedMemory::kDontCommit); in TEST()
89 mem.EnsureCommitted(kSize); in TEST()
[all …]
/external/skia/src/gpu/effects/
DGrConfigConversionEffect.h25 static constexpr int kSize = 256; in TestForPreservingPMConversions() local
30 SkAutoTMalloc<uint32_t> data(kSize * kSize * 3); in TestForPreservingPMConversions()
32 uint32_t* firstRead = data.get() + kSize * kSize; in TestForPreservingPMConversions()
33 uint32_t* secondRead = data.get() + 2 * kSize * kSize; in TestForPreservingPMConversions()
38 for (int y = 0; y < kSize; ++y) { in TestForPreservingPMConversions()
39 for (int x = 0; x < kSize; ++x) { in TestForPreservingPMConversions()
40 uint8_t* color = reinterpret_cast<uint8_t*>(&srcData[kSize * y + x]); in TestForPreservingPMConversions()
47 memset(firstRead, 0, kSize * kSize * sizeof(uint32_t)); in TestForPreservingPMConversions()
48 memset(secondRead, 0, kSize * kSize * sizeof(uint32_t)); in TestForPreservingPMConversions()
51 SkImageInfo::Make(kSize, kSize, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in TestForPreservingPMConversions()
[all …]
DGrConfigConversionEffect.fp18 static constexpr int kSize = 256;
23 SkAutoTMalloc<uint32_t> data(kSize * kSize * 3);
25 uint32_t* firstRead = data.get() + kSize * kSize;
26 uint32_t* secondRead = data.get() + 2 * kSize * kSize;
31 for (int y = 0; y < kSize; ++y) {
32 for (int x = 0; x < kSize; ++x) {
33 uint8_t* color = reinterpret_cast<uint8_t*>(&srcData[kSize*y + x]);
40 memset(firstRead, 0, kSize * kSize * sizeof(uint32_t));
41 memset(secondRead, 0, kSize * kSize * sizeof(uint32_t));
43 const SkImageInfo ii = SkImageInfo::Make(kSize, kSize,
[all …]
/external/skqp/src/gpu/effects/
DGrConfigConversionEffect.h25 static constexpr int kSize = 256; in TestForPreservingPMConversions() local
30 SkAutoTMalloc<uint32_t> data(kSize * kSize * 3); in TestForPreservingPMConversions()
32 uint32_t* firstRead = data.get() + kSize * kSize; in TestForPreservingPMConversions()
33 uint32_t* secondRead = data.get() + 2 * kSize * kSize; in TestForPreservingPMConversions()
38 for (int y = 0; y < kSize; ++y) { in TestForPreservingPMConversions()
39 for (int x = 0; x < kSize; ++x) { in TestForPreservingPMConversions()
40 uint8_t* color = reinterpret_cast<uint8_t*>(&srcData[kSize * y + x]); in TestForPreservingPMConversions()
47 memset(firstRead, 0, kSize * kSize * sizeof(uint32_t)); in TestForPreservingPMConversions()
48 memset(secondRead, 0, kSize * kSize * sizeof(uint32_t)); in TestForPreservingPMConversions()
51 SkImageInfo::Make(kSize, kSize, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in TestForPreservingPMConversions()
[all …]
DGrConfigConversionEffect.fp18 static constexpr int kSize = 256;
23 SkAutoTMalloc<uint32_t> data(kSize * kSize * 3);
25 uint32_t* firstRead = data.get() + kSize * kSize;
26 uint32_t* secondRead = data.get() + 2 * kSize * kSize;
31 for (int y = 0; y < kSize; ++y) {
32 for (int x = 0; x < kSize; ++x) {
33 uint8_t* color = reinterpret_cast<uint8_t*>(&srcData[kSize*y + x]);
40 memset(firstRead, 0, kSize * kSize * sizeof(uint32_t));
41 memset(secondRead, 0, kSize * kSize * sizeof(uint32_t));
43 const SkImageInfo ii = SkImageInfo::Make(kSize, kSize,
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_addrhashmap.h43 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> *map, uptr addr) { in Handle()
109 template<typename T, uptr kSize>
110 AddrHashMap<T, kSize>::Handle::Handle(AddrHashMap<T, kSize> *map, uptr addr, in Handle()
[all …]
/external/skqp/gm/
Dxfermodes3.cpp54 auto tempSurface(this->makeTempSurface(canvas, kSize, kSize)); in onDraw()
60 {SkPaint::kStroke_Style, SkIntToScalar(kSize) / 2}, in onDraw()
67 SkIntToScalar(y + kSize + 3) + font.getSize(), in onDraw()
76 this->drawMode(canvas, x, y, kSize, kSize, modePaint, tempSurface.get()); in onDraw()
79 x += kSize + 10; in onDraw()
82 y += kSize + 30; in onDraw()
93 this->drawMode(canvas, x, y, kSize, kSize, modePaint, tempSurface.get()); in onDraw()
96 x += kSize + 10; in onDraw()
99 y += kSize + 30; in onDraw()
176 const SkPoint kCenter = { SkIntToScalar(kSize) / 2, SkIntToScalar(kSize) / 2 }; in onOnceBeforeDraw()
[all …]
Dbigrrectaaeffect.cpp126 constexpr int kSize = 700; variable
128 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRect(SkRect::MakeIWH(kSize, kSize)), "rect"); )
129 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize, kSize)), "circle");…
130 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize - 1, kSize - 10)), "…
132 …RRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), kSize/2.f - 10.f, kSi…
133 …RRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), kSize/2.f - 10.f, kSi…
Dlocalmatrixshader.cpp15 static constexpr SkScalar kSize = 50; in make_image() local
16 SkImageInfo info = SkImageInfo::MakeN32Premul(kSize, kSize); in make_image()
23 surface->getCanvas()->drawCircle(kSize / 2, kSize / 2, kSize / 2, p); in make_image()
27 surface->getCanvas()->drawLine(kSize * .25f, kSize * .50f, kSize * .75f, kSize * .50f, p); in make_image()
28 surface->getCanvas()->drawLine(kSize * .50f, kSize * .25f, kSize * .50f, kSize * .75f, p); in make_image()
Dbitmapimage.cpp26 return SkISize::Make(2*kSize, 2*kSize); in onISize()
46 SkImageInfo linearInfo = SkImageInfo::MakeN32(2*kSize, kSize, kOpaque_SkAlphaType); in onDraw()
51 legacyCanvas.translate(SkScalar(kSize), 0.0f); in onDraw()
54 canvas->translate(0.0f, SkScalar(kSize)); in onDraw()
57 SkImageInfo srgbInfo = SkImageInfo::MakeS32(2*kSize, kSize, kOpaque_SkAlphaType); in onDraw()
62 srgbCanvas.translate(SkScalar(kSize), 0.0f); in onDraw()
68 static constexpr int kSize = 512; member in skiagm::BitmapImageGM
/external/skia/gm/
Dxfermodes3.cpp54 auto tempSurface(this->makeTempSurface(canvas, kSize, kSize)); in onDraw()
60 {SkPaint::kStroke_Style, SkIntToScalar(kSize) / 2}, in onDraw()
67 SkIntToScalar(y + kSize + 3) + font.getSize(), in onDraw()
76 this->drawMode(canvas, x, y, kSize, kSize, modePaint, tempSurface.get()); in onDraw()
79 x += kSize + 10; in onDraw()
82 y += kSize + 30; in onDraw()
93 this->drawMode(canvas, x, y, kSize, kSize, modePaint, tempSurface.get()); in onDraw()
96 x += kSize + 10; in onDraw()
99 y += kSize + 30; in onDraw()
176 const SkPoint kCenter = { SkIntToScalar(kSize) / 2, SkIntToScalar(kSize) / 2 }; in onOnceBeforeDraw()
[all …]
Dbigrrectaaeffect.cpp115 constexpr int kSize = 700; variable
117 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRect(SkRect::MakeIWH(kSize, kSize)), "rect"); )
118 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize, kSize)), "circle");…
119 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize - 1, kSize - 10)), "…
121 …RRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), kSize/2.f - 10.f, kSi…
122 …RRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), kSize/2.f - 10.f, kSi…
Dlocalmatrixshader.cpp15 static constexpr SkScalar kSize = 50; in make_image() local
16 SkImageInfo info = SkImageInfo::MakeN32Premul(kSize, kSize); in make_image()
23 surface->getCanvas()->drawCircle(kSize / 2, kSize / 2, kSize / 2, p); in make_image()
27 surface->getCanvas()->drawLine(kSize * .25f, kSize * .50f, kSize * .75f, kSize * .50f, p); in make_image()
28 surface->getCanvas()->drawLine(kSize * .50f, kSize * .25f, kSize * .50f, kSize * .75f, p); in make_image()
Dbitmapimage.cpp26 return SkISize::Make(2*kSize, 2*kSize); in onISize()
47 SkImageInfo linearInfo = SkImageInfo::MakeN32(2*kSize, kSize, kOpaque_SkAlphaType); in onDraw()
52 legacyCanvas.translate(SkScalar(kSize), 0.0f); in onDraw()
55 canvas->translate(0.0f, SkScalar(kSize)); in onDraw()
58 SkImageInfo srgbInfo = SkImageInfo::MakeS32(2*kSize, kSize, kOpaque_SkAlphaType); in onDraw()
63 srgbCanvas.translate(SkScalar(kSize), 0.0f); in onDraw()
70 static constexpr int kSize = 512; member in skiagm::BitmapImageGM
Dxfermodes2.cpp33 const SkScalar w = SkIntToScalar(kSize); in onDraw()
34 const SkScalar h = SkIntToScalar(kSize); in onDraw()
102 srcBmp.allocN32Pixels(kSize, kSize); in onOnceBeforeDraw()
105 for (int y = 0; y < kSize; ++y) { in onOnceBeforeDraw()
108 for (int x = 0; x < kSize; ++x) { in onOnceBeforeDraw()
109 pixels[kSize * y + x] = rowColor; in onOnceBeforeDraw()
115 dstBmp.allocN32Pixels(kSize, kSize); in onOnceBeforeDraw()
118 for (int x = 0; x < kSize; ++x) { in onOnceBeforeDraw()
121 for (int y = 0; y < kSize; ++y) { in onOnceBeforeDraw()
122 pixels[kSize * y + x] = colColor; in onOnceBeforeDraw()
[all …]
/external/skia/modules/skottie/gm/
DSkottieGM.cpp53 return SkISize::Make(kSize, kSize); in onISize()
70 auto dest = SkRect::MakeWH(kSize, kSize); in onDraw()
86 static constexpr SkScalar kSize = 800; member in SkottieWebFontGM
104 return SkISize::Make(kSize, kSize); in onISize()
123 auto dest = SkRect::MakeWH(kSize, kSize); in onDraw()
159 static constexpr SkScalar kSize = 800; member in SkottieColorizeGM
179 return SkISize::Make(kSize, kSize); in onISize()
196 auto dest = SkRect::MakeWH(kSize, kSize); in onDraw()
220 static constexpr SkScalar kSize = 800; member in SkottieMultiFrameGM
/external/skqp/modules/skottie/gm/
DSkottieGM.cpp53 return SkISize::Make(kSize, kSize); in onISize()
69 auto dest = SkRect::MakeWH(kSize, kSize); in onDraw()
84 static constexpr SkScalar kSize = 800; member in SkottieWebFontGM
102 return SkISize::Make(kSize, kSize); in onISize()
120 auto dest = SkRect::MakeWH(kSize, kSize); in onDraw()
155 static constexpr SkScalar kSize = 800; member in SkottieColorizeGM
175 return SkISize::Make(kSize, kSize); in onISize()
191 auto dest = SkRect::MakeWH(kSize, kSize); in onDraw()
214 static constexpr SkScalar kSize = 800; member in SkottieMultiFrameGM
/external/skia/tests/
DLRUCacheTest.cpp29 static const int kSize = 100; in DEF_TEST() local
30 SkLRUCache<int, std::unique_ptr<Value>> test(kSize); in DEF_TEST()
31 for (int i = 1; i < kSize * 2; i++) { in DEF_TEST()
36 if (i > kSize) { in DEF_TEST()
37 REPORTER_ASSERT(r, kSize == instances); in DEF_TEST()
38 REPORTER_ASSERT(r, !test.find(i - kSize)); in DEF_TEST()
53 static const int kSize = 5; in DEF_TEST() local
54 SkLRUCache<int, std::unique_ptr<Value>> test(kSize); in DEF_TEST()
61 REPORTER_ASSERT(r, kSize == instances); in DEF_TEST()
62 REPORTER_ASSERT(r, kSize == test.count()); in DEF_TEST()
[all …]
/external/skqp/tests/
DLRUCacheTest.cpp29 static const int kSize = 100; in DEF_TEST() local
30 SkLRUCache<int, std::unique_ptr<Value>> test(kSize); in DEF_TEST()
31 for (int i = 1; i < kSize * 2; i++) { in DEF_TEST()
36 if (i > kSize) { in DEF_TEST()
37 REPORTER_ASSERT(r, kSize == instances); in DEF_TEST()
38 REPORTER_ASSERT(r, !test.find(i - kSize)); in DEF_TEST()
53 static const int kSize = 5; in DEF_TEST() local
54 SkLRUCache<int, std::unique_ptr<Value>> test(kSize); in DEF_TEST()
61 REPORTER_ASSERT(r, kSize == instances); in DEF_TEST()
62 REPORTER_ASSERT(r, kSize == test.count()); in DEF_TEST()
[all …]
/external/libchrome/base/containers/
Dring_buffer.h24 template <typename T, size_t kSize>
29 size_t BufferSize() const { return kSize; } in BufferSize()
71 if (index_ == kSize)
88 Iterator(const RingBuffer<T, kSize>& buffer, size_t index) in Iterator()
91 const RingBuffer<T, kSize>& buffer_;
95 friend class RingBuffer<T, kSize>;
102 if (current_index_ < kSize) in Begin()
103 return Iterator(*this, kSize - current_index_); in Begin()
110 Iterator End() const { return Iterator(*this, kSize - 1); } in End()
114 return (current_index_ + n) % kSize; in BufferIndex()
[all …]

1234567891011