/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | FramebufferSurfaceTest.cpp | 32 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/ |
D | mtp_packet_fuzzer.cpp | 41 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()
|
D | MtpPacketFuzzerUtils.h | 29 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()
|
D | mtp_data_packet_fuzzer.cpp | 43 [&]() { 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 …]
|
D | mtp_request_packet_fuzzer.cpp | 48 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()
|
D | mtp_property_fuzzer.cpp | 88 mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize)); in process() 123 for (size_t idx = 0; idx < mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize); in process()
|
D | mtp_response_packet_fuzzer.cpp | 44 mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize)); /*size*/ in process()
|
D | mtp_event_packet_fuzzer.cpp | 42 [&]() { mtpEventPacket.allocate(mFdp.ConsumeIntegralInRange(kMinSize, kMaxSize)); }, in process()
|
/frameworks/av/media/ndk/fuzzer/ |
D | ndk_image_reader_fuzzer.cpp | 23 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/ |
D | rtp_writer_fuzzer.cpp | 24 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/ |
D | media_log_fuzzer.cpp | 24 constexpr size_t kMaxSize = 0x10000; variable 51 size_t logSize = fuzzedDataProvider.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in process()
|
/frameworks/base/libs/androidfw/ |
D | StringPool.cpp | 328 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/ |
D | MediaLogService.h | 38 static const size_t kMaxSize = 0x10000; variable
|
D | MediaLogService.cpp | 58 size < kMinSize || size > kMaxSize || name == NULL || in registerWriter()
|
/frameworks/av/media/libmediaplayerservice/fuzzer/ |
D | metadataretriever_fuzzer.cpp | 89 constexpr size_t kMaxSize = 100; variable 157 uint32_t dataBlobSize = mFdp.ConsumeIntegralInRange<uint16_t>(0, min(kMaxSize,size)); in setDataSource()
|
D | mediaplayer_fuzzer.cpp | 45 constexpr int32_t kMaxSize = 100; variable 473 int32_t length = mFdp.ConsumeIntegralInRange<uint32_t>(kMinSize, kMaxSize); in invokeMediaPlayer()
|
/frameworks/av/media/libstagefright/tests/fuzzers/ |
D | MediaMuxerFuzzer.cpp | 163 const size_t kMaxSize = (size * 80) / 100; in LLVMFuzzerTestOneInput() local 187 fdp.ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize)); in LLVMFuzzerTestOneInput()
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_FileSystemUtils.cpp | 292 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/ |
D | MapperHelpers.h | 67 constexpr size_t kMaxSize = 256; variable 148 const size_t count = mFdp->ConsumeIntegralInRange<size_t>(0, kMaxSize); in getEvents()
|