Home
last modified time | relevance | path

Searched refs:kArraySize (Results 1 – 25 of 28) sorted by relevance

12

/external/libchrome/base/debug/
Dasan_invalid_access.cc31 static const int kArraySize = 5; in CorruptMemoryBlock() local
32 LONG* array = new LONG[kArraySize]; in CorruptMemoryBlock()
57 static const size_t kArraySize = 5; variable
62 const_cast<volatile int*>(new int[kArraySize])); in AsanHeapOverflow()
63 int dummy = array[kArraySize]; in AsanHeapOverflow()
70 const_cast<volatile int*>(new int[kArraySize])); in AsanHeapUnderflow()
82 const_cast<volatile int*>(new int[kArraySize])); in AsanHeapUseAfterFree()
85 int dummy = dangling[kArraySize / 2]; in AsanHeapUseAfterFree()
/external/pigweed/pw_containers/public/pw_containers/
Dflat_map.h31 template <typename Key, typename Value, size_t kArraySize>
48 using container_type = typename std::array<value_type, kArraySize>;
52 constexpr FlatMap(const std::array<value_type, kArraySize>& items) in FlatMap()
54 ConstexprSort(items_.data(), kArraySize); in FlatMap()
61 constexpr size_type size() const { return kArraySize; } in size()
63 constexpr size_type max_size() const { return kArraySize; } in max_size()
134 std::array<value_type, kArraySize> items_;
/external/libchrome/base/
Dsecurity_unittest.cc88 const size_t kArraySize = 4096; in TEST() local
91 const size_t kDynamicArraySize = HideValueFromCompiler(kArraySize); in TEST()
93 const size_t kArraySize2 = kMaxSizeT / kArraySize + 10; in TEST()
96 std::unique_ptr<char[][kArraySize]> array_pointer( in TEST()
97 new (nothrow) char[kDynamicArraySize2][kArraySize]); in TEST()
/external/llvm-project/compiler-rt/test/fuzzer/
DLoadTest.cpp13 const int kArraySize = 32505854; // 0x01effffe variable
14 uint8_t array[kArraySize];
22 Sink = array[a % (kArraySize + 1)]; in LLVMFuzzerTestOneInput()
/external/libchrome/base/containers/
Dsmall_map.h163 int kArraySize = 4,
173 static_assert(kArraySize > 0, "default initial size should be positive");
405 if (size_ == kArraySize) {
427 if (size_ == kArraySize) {
462 if (size_ == kArraySize) {
586 value_type array_[kArraySize];
597 value_type array[kArraySize];
601 for (int i = 0; i < kArraySize; i++) {
611 for (int i = 0; i < kArraySize; i++) {
642 int kArraySize,
[all …]
/external/compiler-rt/test/msan/
Dallocator_returns_null.cc40 size_t kArraySize = 4096; in main() local
41 volatile size_t kArraySize2 = kMaxSizeT / kArraySize + 10; in main()
42 x = (char*)calloc(kArraySize, kArraySize2); in main()
/external/compiler-rt/test/tsan/
Dallocator_returns_null.cc35 size_t kArraySize = 4096; in main() local
36 volatile size_t kArraySize2 = kMaxSizeT / kArraySize + 10; in main()
37 x = (char*)calloc(kArraySize, kArraySize2); in main()
/external/llvm-project/compiler-rt/test/hwasan/TestCases/
Dallocator_returns_null.cpp67 size_t kArraySize = 4096; in main() local
68 volatile size_t kArraySize2 = kMaxSizeT / kArraySize + 10; in main()
69 x = calloc(kArraySize, kArraySize2); in main()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/
Dallocator_returns_null.cpp70 size_t kArraySize = 4096; in main() local
71 volatile size_t kArraySize2 = kMaxSizeT / kArraySize + 10; in main()
72 x = calloc(kArraySize, kArraySize2); in main()
/external/compiler-rt/test/asan/TestCases/
Dallocator_returns_null.cc43 size_t kArraySize = 4096; in main() local
44 volatile size_t kArraySize2 = kMaxSizeT / kArraySize + 10; in main()
45 x = calloc(kArraySize, kArraySize2); in main()
/external/angle/src/common/
Dbitset_utils.h629 Iterator end() const { return Iterator(*this, kArraySize); }
633 for (std::size_t index = 1; index < kArraySize; index++)
685 static constexpr std::size_t kArraySize =
691 std::array<BaseBitSet, kArraySize> mBaseBitSetArray;
704 for (std::size_t index = 0; index < kArraySize; index++)
717 while (mIndex < mCurrentParent->kArraySize)
726 if (mIndex < mCurrentParent->kArraySize)
732 mCurrentIterator = mCurrentParent->mBaseBitSetArray[mCurrentParent->kArraySize - 1].end();
743 if (mIndex < mCurrentParent->kArraySize)
772 for (std::size_t index = 0; index < kArraySize; index++)
[all …]
/external/skia/tests/
DSerializationTest.cpp33 static const uint32_t kArraySize = 64; variable
248 SerializationUtils<T>::Write(writer, data, kArraySize); in TestArraySerialization()
251 REPORTER_ASSERT(reporter, (4 + kArraySize * sizeof(T)) == bytesWritten); in TestArraySerialization()
258 T dataRead[kArraySize]; in TestArraySerialization()
259 bool success = SerializationUtils<T>::Read(buffer, dataRead, kArraySize / 2); in TestArraySerialization()
265 success = SerializationUtils<T>::Read(buffer2, dataRead, kArraySize); in TestArraySerialization()
591 unsigned char data[kArraySize] = { 1, 2, 3 }; in DEF_TEST()
597 SkColor data[kArraySize] = { SK_ColorBLACK, SK_ColorWHITE, SK_ColorRED }; in DEF_TEST()
603 SkColor4f data[kArraySize] = { in DEF_TEST()
614 int32_t data[kArraySize] = { 1, 2, 4, 8 }; in DEF_TEST()
[all …]
/external/llvm-project/clang/tools/clang-fuzzer/handle-llvm/
Dinput_arrays.h15 static const int kArraySize = 64; variable
17 static const int kTotalSize = sizeof(int) * kArraySize * kNumArrays;
20 static int OptArrays[kNumArrays][kArraySize];
21 static int UnoptArrays[kNumArrays][kArraySize];
24 static int InputArrays[kNumArrays][kArraySize] =
Dhandle_llvm.cpp147 static void RunFuncOnInputs(LLVMFunc f, int Arr[kNumArrays][kArraySize]) { in RunFuncOnInputs() argument
150 kArraySize); in RunFuncOnInputs()
/external/skqp/tests/
DSerializationTest.cpp35 static const uint32_t kArraySize = 64; variable
250 SerializationUtils<T>::Write(writer, data, kArraySize); in TestArraySerialization()
253 REPORTER_ASSERT(reporter, (4 + kArraySize * sizeof(T)) == bytesWritten); in TestArraySerialization()
260 T dataRead[kArraySize]; in TestArraySerialization()
261 bool success = SerializationUtils<T>::Read(buffer, dataRead, kArraySize / 2); in TestArraySerialization()
267 success = SerializationUtils<T>::Read(buffer2, dataRead, kArraySize); in TestArraySerialization()
500 unsigned char data[kArraySize] = { 1, 2, 3 }; in DEF_TEST()
506 SkColor data[kArraySize] = { SK_ColorBLACK, SK_ColorWHITE, SK_ColorRED }; in DEF_TEST()
512 SkColor4f data[kArraySize] = { in DEF_TEST()
523 int32_t data[kArraySize] = { 1, 2, 4, 8 }; in DEF_TEST()
[all …]
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_mman_test.cc146 size_t kArraySize = 4096; in TEST() local
148 volatile size_t kArraySize2 = kMaxSizeT / kArraySize + 10; in TEST()
150 EXPECT_DEATH(p = user_calloc(thr, pc, kArraySize, kArraySize2), in TEST()
/external/compiler-rt/lib/asan/tests/
Dasan_interface_test.cc29 const size_t kArraySize = 100; in TEST() local
30 char *array = Ident((char*)malloc(kArraySize)); in TEST()
36 EXPECT_EQ(kArraySize, __sanitizer_get_allocated_size(array)); in TEST()
46 EXPECT_FALSE(__sanitizer_get_ownership(array + kArraySize / 2)); in TEST()
47 EXPECT_DEATH(__sanitizer_get_allocated_size(array + kArraySize / 2), in TEST()
Dasan_test.cc411 const size_t kArraySize = 100; in TEST() local
412 char *array = Ident((char*)malloc(kArraySize)); in TEST()
415 EXPECT_EQ(kArraySize, malloc_usable_size(array)); in TEST()
418 EXPECT_DEATH(malloc_usable_size(array + kArraySize / 2), in TEST()
/external/llvm-project/compiler-rt/lib/asan/tests/
Dasan_interface_test.cpp30 const size_t kArraySize = 100; in TEST() local
31 char *array = Ident((char*)malloc(kArraySize)); in TEST()
37 EXPECT_EQ(kArraySize, __sanitizer_get_allocated_size(array)); in TEST()
47 EXPECT_FALSE(__sanitizer_get_ownership(array + kArraySize / 2)); in TEST()
48 EXPECT_DEATH(__sanitizer_get_allocated_size(array + kArraySize / 2), in TEST()
Dasan_test.cpp436 const size_t kArraySize = 100; in TEST() local
437 char *array = Ident((char*)malloc(kArraySize)); in TEST()
440 EXPECT_EQ(kArraySize, malloc_usable_size(array)); in TEST()
443 EXPECT_DEATH(malloc_usable_size(array + kArraySize / 2), in TEST()
/external/llvm-project/clang/tools/clang-fuzzer/proto-to-llvm/
Dloop_proto_to_llvm.cpp166 << "!2 = !{!\"llvm.loop.vectorize.width\", i32 " << kArraySize << "}\n"; in NestedLoopToString()
185 << "!2 = !{!\"llvm.loop.vectorize.width\", i32 " << kArraySize << "}\n"; in SingleLoopToString()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmTrinaryMinMaxTests.cpp417 static const deUint32 kArraySize; member in vkt::SpirVAssembly::__anon13c548fd0111::TrinaryMinMaxCase
422 const deUint32 TrinaryMinMaxCase::kArraySize = 100u; member in vkt::SpirVAssembly::__anon13c548fd0111::TrinaryMinMaxCase
534 replacements["ARRAY_SIZE"] = de::toString(kArraySize); in getSpirVReplacements()
711 constexpr auto kNumOperations = TrinaryMinMaxCase::kArraySize; in iterate()
/external/angle/src/tests/gl_tests/
DUniformTest.cpp1007 static const size_t kArraySize = 4; in TEST_P() local
1030 << ToString(kArraySize) << "];\n"; in TEST_P()
1074 for (size_t index = 0; index < kArraySize; index++) in TEST_P()
/external/libchrome/ipc/
Dipc_message_utils.h833 int kArraySize,
836 struct ParamTraits<base::small_map<NormalMap, kArraySize, EqualKey, MapInit>> {
837 using param_type = base::small_map<NormalMap, kArraySize, EqualKey, MapInit>;
/external/googletest/googletest/test/
Dgtest_unittest.cc808 constexpr int kArraySize = 10; in TEST() local
810 uint32_t values[kArraySize]; in TEST()
813 for (int i = 0; i < kArraySize; i++) { in TEST()
818 for (int i = 0; i < kArraySize; i++) { in TEST()

12