Home
last modified time | relevance | path

Searched refs:MaxSize (Results 1 – 9 of 9) sorted by relevance

/aosp12/system/chre/util/tests/
H A Dheap_test.cc27 const size_t MaxSize = 1000; in TEST() local
28 std::array<int, MaxSize> array; in TEST()
29 std::array<int, MaxSize> array_sorted; in TEST()
31 for (size_t i = 0; i < MaxSize; ++i) { in TEST()
37 for (size_t s = 1; s < MaxSize + 1; ++s) { in TEST()
68 const size_t MaxSize = 1000; in TEST() local
69 std::array<int, MaxSize> array; in TEST()
70 std::array<int, MaxSize> array_sorted; in TEST()
72 for (size_t i = 0; i < MaxSize; ++i) { in TEST()
77 for (size_t s = 1; s < MaxSize + 1; ++s) { in TEST()
/aosp12/system/nfc/src/fuzzers/
H A Dfuzz_utils.cc42 size_t MaxSize) { in PackPackets() argument
45 for (auto it = Packets.cbegin(); MaxSize > 0 && it != Packets.cend(); ++it) { in PackPackets()
52 if (s > MaxSize - 1) { in PackPackets()
53 s = MaxSize - 1; in PackPackets()
56 MaxSize--; in PackPackets()
59 MaxSize -= s; in PackPackets()
69 size_t MaxSize, uint Seed) { in LLVMFuzzerCustomMutator() argument
99 Size = PackPackets(Packets, Data, MaxSize); in LLVMFuzzerCustomMutator()
/aosp12/frameworks/base/native/graphics/jni/fuzz/
H A Dpng_mutator.h106 using Mutator = size_t (*)(uint8_t *Data, size_t Size, size_t MaxSize);
284 extern "C" size_t LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize);
287 size_t LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize) { in LLVMFuzzerMutate() argument
294 size_t MaxSize, unsigned int Seed) { in LLVMFuzzerCustomMutator() argument
302 if (str.size() > MaxSize) return Size; in LLVMFuzzerCustomMutator()
/aosp12/system/nfc/src/fuzzers/rw/
H A Dfuzz.h18 extern "C" size_t LLVMFuzzerMutate(uint8_t* Data, size_t Size, size_t MaxSize);
/aosp12/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
H A DAData.h639 template<typename Flag, size_t MaxSize=1024, size_t Align=4>
646 static_assert(std::numeric_limits<Flag>::max() / count > (MaxSize / Align),
649 static constexpr Flag max_size_stored = MaxSize / Align + 1;
981 template<typename Flag, size_t MaxSize = 1024, size_t Align = 4>
982 using Relaxed = Custom<relaxed_flagger<Flag, MaxSize, Align>>;
/aosp12/system/nfc/src/fuzzers/inc/
H A Dfuzz_cmn.h35 extern "C" size_t LLVMFuzzerMutate(uint8_t* Data, size_t Size, size_t MaxSize);
/aosp12/bionic/libc/malloc_debug/
H A Dmalloc_debug.cpp436 if (size > PointerInfoType::MaxSize()) { in InternalMalloc()
576 if (bytes > PointerInfoType::MaxSize()) { in debug_memalign()
683 if (bytes > PointerInfoType::MaxSize()) { in debug_realloc()
790 if (real_size > PointerInfoType::MaxSize()) { in debug_calloc()
H A DPointerData.h98 static size_t MaxSize() { return (1U << 31) - 1; }
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
H A Ddocument.h1628 enum { MaxChars = sizeof(String) / sizeof(Ch), MaxSize = MaxChars - 1, LenPos = MaxSize };
1631 inline static bool Usable(SizeType len) { return (MaxSize >= len); }
1632 inline void SetLength(SizeType len) { str[LenPos] = (Ch)(MaxSize - len); }
1633 inline SizeType GetLength() const { return (SizeType)(MaxSize - str[LenPos]); }