Home
last modified time | relevance | path

Searched refs:kMaxSize (Results 1 – 19 of 19) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DFramebufferSurfaceTest.cpp32 const ui::Size kMaxSize(1920, 1080); in TEST_F() local
33 EXPECT_EQ(ui::Size(1920, 1080), limitSize({3840, 2160}, kMaxSize)); in TEST_F()
34 EXPECT_EQ(ui::Size(1920, 1080), limitSize({1920, 1080}, kMaxSize)); in TEST_F()
35 EXPECT_EQ(ui::Size(1920, 1012), limitSize({4096, 2160}, kMaxSize)); in TEST_F()
36 EXPECT_EQ(ui::Size(1080, 1080), limitSize({3840, 3840}, kMaxSize)); in TEST_F()
37 EXPECT_EQ(ui::Size(1280, 720), limitSize({1280, 720}, kMaxSize)); in TEST_F()
/frameworks/av/media/mtp/tests/MtpFuzzer/
Dmtp_packet_fuzzer.cpp41 kMaxSize)); /*bufferSize*/ in process()
45 mtpPacket.allocate(mFdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize)); in process()
54 mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize)); in process()
58 mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize)); in process()
62 mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize)); in process()
66 mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize), in process()
67 mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize)); in process()
71 mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize)); in process()
DMtpPacketFuzzerUtils.h29 constexpr size_t kMaxSize = 1000; variable
55 fdp->ConsumeBytes<uint8_t>(fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize)); in fillUsbDevFsUrb()
65 fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize))); in fillUsbDevFsUrb()
75 fdp->ConsumeBytes<uint8_t>(fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize)); in fillUsbRequest()
78 mUsbRequest.actual_length = fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in fillUsbRequest()
79 mUsbRequest.max_packet_size = fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in fillUsbRequest()
81 mUsbRequest.endpoint = fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in fillUsbRequest()
83 fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize))); in fillUsbRequest()
91 fdp->ConsumeBytes<uint8_t>(fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize)); in writeHandle()
Dmtp_data_packet_fuzzer.cpp43 [&]() { mtpDataPacket.allocate(mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize)); }, in process()
46 mtpDataPacket.setOperationCode(mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize)); in process()
49 mtpDataPacket.setTransactionID(mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize)); in process()
94 size_t size = mFdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in process()
106 size_t size = mFdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in process()
118 size_t size = mFdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in process()
130 size_t size = mFdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in process()
143 size_t size = mFdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in process()
155 size_t size = mFdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in process()
167 size_t size = mFdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in process()
[all …]
Dmtp_request_packet_fuzzer.cpp48 mtpRequestPacket.allocate(mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize)); in process()
56 mFdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize)); in process()
78 for (int32_t idx = 0; idx < mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize); ++idx) { in makeFile()
Dmtp_property_fuzzer.cpp88 mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize)); in process()
123 for (size_t idx = 0; idx < mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize); in process()
Dmtp_response_packet_fuzzer.cpp44 mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize)); /*size*/ in process()
Dmtp_event_packet_fuzzer.cpp42 [&]() { mtpEventPacket.allocate(mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize)); }, in process()
/frameworks/av/media/ndk/fuzzer/
Dndk_image_reader_fuzzer.cpp23 constexpr int32_t kMaxSize = INT_MAX; variable
43 int32_t imageWidth = mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize); in process()
44 int32_t imageHeight = mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize); in process()
45 int32_t imageFormat = mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize); in process()
46 int32_t imageUsage = mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize); in process()
/frameworks/av/media/libstagefright/rtsp/fuzzer/
Drtp_writer_fuzzer.cpp24 constexpr int32_t kMaxSize = 65536; variable
63 vectorSize = mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize); in TestMediaSource()
65 vectorSize = mFdp.ConsumeIntegralInRange<int32_t>(kMinSize, kMaxSize); in TestMediaSource()
123 mFdp.ConsumeIntegralInRange<uint32_t>(kMinSize, kMaxSize) /* seqNo */); in createARTPWriter()
129 if (mArtpWriter->getSequenceNum() > kMaxSize) { in process()
/frameworks/av/services/medialog/fuzzer/
Dmedia_log_fuzzer.cpp24 constexpr size_t kMaxSize = 0x10000; variable
51 size_t logSize = fuzzedDataProvider.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in process()
/frameworks/base/libs/androidfw/
DStringPool.cpp328 constexpr size_t kMaxSize = kMask - 1; in EncodeLength() local
329 if (length > kMaxSize) { in EncodeLength()
330 *data++ = kMask | (kMaxSize & (length >> (sizeof(T) * 8))); in EncodeLength()
360 constexpr size_t kMaxSize = kMask - 1; in EncodedLengthUnits() local
361 return length > kMaxSize ? 2 : 1; in EncodedLengthUnits()
/frameworks/av/services/medialog/
DMediaLogService.h38 static const size_t kMaxSize = 0x10000; variable
DMediaLogService.cpp58 size < kMinSize || size > kMaxSize || name == NULL || in registerWriter()
/frameworks/av/media/libmediaplayerservice/fuzzer/
Dmetadataretriever_fuzzer.cpp89 constexpr size_t kMaxSize = 100; variable
157 uint32_t dataBlobSize = mFdp.ConsumeIntegralInRange<uint16_t>(0, min(kMaxSize,size)); in setDataSource()
Dmediaplayer_fuzzer.cpp45 constexpr int32_t kMaxSize = 100; variable
473 int32_t length = mFdp.ConsumeIntegralInRange<uint32_t>(kMinSize, kMaxSize); in invokeMediaPlayer()
/frameworks/av/media/libstagefright/tests/fuzzers/
DMediaMuxerFuzzer.cpp163 const size_t kMaxSize = (size * 80) / 100; in LLVMFuzzerTestOneInput() local
187 fdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize)); in LLVMFuzzerTestOneInput()
/frameworks/base/core/jni/
Dcom_android_internal_content_FileSystemUtils.cpp292 constexpr uint64_t kMaxSize = 64 * 1024; in punchHolesInZip() local
294 std::unique_ptr<uint8_t, decltype(&free)> buffer(static_cast<uint8_t *>(malloc(kMaxSize)), in punchHolesInZip()
/frameworks/native/services/inputflinger/tests/fuzzers/
DMapperHelpers.h67 constexpr size_t kMaxSize = 256; variable
148 const size_t count = mFdp->ConsumeIntegralInRange<size_t>(0, kMaxSize); in getEvents()