/third_party/skia/third_party/externals/freetype/src/gzip/ |
H A D | ftgzip.c | 126 uInt size ) in ft_gzip_alloc() 129 FT_ULong sz = (FT_ULong)size * items; in ft_gzip_alloc() 156 unsigned size ) in zcalloc() 158 return ft_gzip_alloc( opaque, items, size ); in zcalloc() 384 FT_ULong size; in ft_gzip_file_fill_input() local 389 size = stream->read( stream, stream->pos, zip->input, in ft_gzip_file_fill_input() 391 if ( size == 0 ) in ft_gzip_file_fill_input() 399 size = stream->size - stream->pos; in ft_gzip_file_fill_input() 400 if ( size > FT_GZIP_BUFFER_SIZ in ft_gzip_file_fill_input() [all...] |
/third_party/python/Modules/_ctypes/libffi_osx/x86/ |
H A D | x86-ffi64.c | 156 if (byte_offset + type->size <= 4) in classify_argument() 164 int size = byte_offset + type->size; in classify_argument() local 166 if (size <= 4) in classify_argument() 171 else if (size <= 8) in classify_argument() 176 else if (size <= 12) in classify_argument() 182 else if (size <= 16) in classify_argument() 216 (type->size + UNITS_PER_WORD - 1) / UNITS_PER_WORD; in classify_argument() 219 if (type->size > 16) in classify_argument() 245 byte_offset += (*ptr)->size; in classify_argument() 475 size_t size = arg_types[i]->size; ffi_call() local [all...] |
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | SmallSortedMap.java | 90 * @param arraySize The size of the entry array containing the lexicographically smallest 122 * @param arraySize The size of the entry array containing the lexicographically smallest 179 return entryList.size(); in getNumArrayEntries() 189 return overflowEntries.size(); in getNumOverflowEntries() 206 public int size() { in size() method in SmallSortedMap 207 return entryList.size() + overflowEntries.size(); in size() 253 if (entryList.size() == maxArraySize) { in put() 316 int right = entryList.size() - 1; in binarySearchInArray() 474 public int size() { in size() method in SmallSortedMap.EntrySet [all...] |
/drivers/hdf_core/framework/test/fuzztest/devmgr_cpp_fuzzer/unloaddevice_fuzzer/ |
H A D | unloaddevice_fuzzer.cpp | 27 bool UnloadDeviceFuzzTest(const uint8_t *data, size_t size) in UnloadDeviceFuzzTest() argument 36 parcel.WriteBuffer(data, size); in UnloadDeviceFuzzTest() 49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 51 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput() 55 OHOS::UnloadDeviceFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/hdf_core/framework/test/fuzztest/ioservice_fuzzer/ioserviceremove_fuzzer/ |
H A D | ioserviceremove_fuzzer.cpp | 18 bool IoserviceGroupRemoveServiceFuzzTest(const uint8_t *data, size_t size) in IoserviceGroupRemoveServiceFuzzTest() argument 27 parcel.WriteBuffer(data, size); in IoserviceGroupRemoveServiceFuzzTest() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput() 63 OHOS::IoserviceGroupRemoveServiceFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/fuzztest/renderframe_fuzzer/ |
H A D | renderframe_fuzzer.cpp | 30 void RenderFrameFuzzTest(const uint8_t* data, size_t size) in RenderFrameFuzzTest() argument 32 if ((data == nullptr) || (size < (sizeof(uint64_t)))) { in RenderFrameFuzzTest() 36 std::string adpName(reinterpret_cast<const char*>(data), size); in RenderFrameFuzzTest() local 54 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 57 OHOS::HDI::DistributedAudio::Audio::V1_0::RenderFrameFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dcameraonsettingsresult_fuzzer/ |
H A D | dcameraonsettingsresult_fuzzer.cpp | 34 void DcameraOnSettingsResultFuzzTest(const uint8_t* data, size_t size) in DcameraOnSettingsResultFuzzTest() argument 36 if ((data == nullptr) || (size < sizeof(int32_t))) { in DcameraOnSettingsResultFuzzTest() 47 result.value_ = std::string(reinterpret_cast<const char*>(data), size); in DcameraOnSettingsResultFuzzTest() 55 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 58 OHOS::DistributedHardware::DcameraOnSettingsResultFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/usb/test/fuzztest/usbcontroltransferread_fuzzer/ |
H A D | usbcontroltransferread_fuzzer.cpp | 29 bool UsbControlTransferReadFuzzTest(const uint8_t *data, size_t size) in UsbControlTransferReadFuzzTest() argument 31 (void)size; in UsbControlTransferReadFuzzTest() 62 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 64 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput() 67 OHOS::USB::UsbControlTransferReadFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/usb/test/fuzztest/usbcontroltransferwrite_fuzzer/ |
H A D | usbcontroltransferwrite_fuzzer.cpp | 29 bool UsbControlTransferWriteFuzzTest(const uint8_t *data, size_t size) in UsbControlTransferWriteFuzzTest() argument 31 (void)size; in UsbControlTransferWriteFuzzTest() 62 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 64 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput() 67 OHOS::USB::UsbControlTransferWriteFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/usb/test/fuzztest/usbgetstringdescriptor_fuzzer/ |
H A D | usbgetstringdescriptor_fuzzer.cpp | 28 bool UsbGetStringDescriptorFuzzTest(const uint8_t *data, size_t size) in UsbGetStringDescriptorFuzzTest() argument 30 (void)size; in UsbGetStringDescriptorFuzzTest() 55 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 57 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput() 60 OHOS::USB::UsbGetStringDescriptorFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/usb/test/fuzztest/usbregbulkcallback_fuzzer/ |
H A D | usbregbulkcallback_fuzzer.cpp | 30 bool UsbRegBulkCallbackFuzzTest(const uint8_t *data, size_t size) in UsbRegBulkCallbackFuzzTest() argument 32 (void)size; in UsbRegBulkCallbackFuzzTest() 63 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 65 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput() 68 OHOS::USB::UsbRegBulkCallbackFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/usb/test/fuzztest/usbrequestwait_fuzzer/ |
H A D | usbrequestwait_fuzzer.cpp | 29 bool UsbRequestWaitFuzzTest(const uint8_t *data, size_t size) in UsbRequestWaitFuzzTest() argument 31 (void)size; in UsbRequestWaitFuzzTest() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 59 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput() 62 OHOS::USB::UsbRequestWaitFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/thermal/test/fuzztest/thermalhdistub_fuzzer/ |
H A D | thermalhdistub_fuzz.cpp | 41 static void ThermalStubFuzzTest(const uint8_t *data, size_t size) in ThermalStubFuzzTest() argument 44 if (size < sizeof(code)) { in ThermalStubFuzzTest() 59 datas.WriteBuffer(data, size); in ThermalStubFuzzTest() 70 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 73 OHOS::HDI::Thermal::V1_1::ThermalStubFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/usb/test/fuzztest/usbgetconfigdescriptor_fuzzer/ |
H A D | usbgetconfigdescriptor_fuzzer.cpp | 28 bool UsbGetConfigDescriptorFuzzTest(const uint8_t *data, size_t size) in UsbGetConfigDescriptorFuzzTest() argument 30 (void)size; in UsbGetConfigDescriptorFuzzTest() 55 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 57 if (size < OHOS::THRESHOLD) { in LLVMFuzzerTestOneInput() 60 OHOS::USB::UsbGetConfigDescriptorFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/drivers/peripheral/wlan/test/fuzztest/chip_fuzzer/ |
H A D | chip_fuzzer.cpp | 37 static void WifiChipStubFuzzTest(const uint8_t *data, size_t size) in WifiChipStubFuzzTest() argument 40 if (size < sizeof(code)) { in WifiChipStubFuzzTest() 49 datas.WriteBuffer(data, size); in WifiChipStubFuzzTest() 67 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 70 OHOS::HDI::Wlan::Chip::V1_0::WifiChipStubFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/ai/neural_network_runtime/test/fuzztest/ |
H A D | data.h | 28 Data(const uint8_t* data, size_t size)
in Data() argument 31 dataSize = size;
in Data() 60 const uint8_t* GetSpecificData(size_t startPos, size_t& size) const
in GetSpecificData() 62 if ((startPos + size) > dataSize) {
in GetSpecificData() 63 size = dataSize - startPos;
in GetSpecificData()
|
/foundation/arkui/ace_engine/adapter/preview/osal/ |
H A D | image_source_preview.cpp | 25 RefPtr<ImageSource> ImageSource::Create(const uint8_t* data, uint32_t size) in Create() argument 35 bool ImageSource::IsAstc(const uint8_t* data, size_t size) in IsAstc() argument 40 ImageSource::Size ImageSource::GetASTCInfo(const uint8_t* data, size_t size) in GetASTCInfo() argument 51 const Size& size, AIImageQuality imageQuality, bool isHdrDecoderNeed) in CreatePixelMap() 57 uint32_t index, const Size& size, AIImageQuality imageQuality, bool isHdrDecoderNeed) in CreatePixelMap() 50 CreatePixelMap( const Size& size, AIImageQuality imageQuality, bool isHdrDecoderNeed) CreatePixelMap() argument 56 CreatePixelMap( uint32_t index, const Size& size, AIImageQuality imageQuality, bool isHdrDecoderNeed) CreatePixelMap() argument
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/createfd_fuzzer/ |
H A D | createfd_fuzzer.cpp | 28 bool fuzzelCreateFdCaseOne(const uint8_t* data, size_t size)
in fuzzelCreateFdCaseOne() argument 40 bool fuzzelCreateFdCaseTwo(const uint8_t* data, size_t size)
in fuzzelCreateFdCaseTwo() argument 53 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
in LLVMFuzzerTestOneInput() argument 55 OHOS::fuzzelCreateFdCaseOne(data, size);
in LLVMFuzzerTestOneInput() 56 OHOS::fuzzelCreateFdCaseTwo(data, size);
in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/parsesyscap_fuzzer/ |
H A D | parsesyscap_fuzzer.cpp | 31 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 33 if ((size <= 4) || (data == nullptr)) { in DoSomethingInterestingWithMyAPI() 43 std::string info (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() local 65 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 68 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/compatibleapplicationinfo_fuzzer/ |
H A D | compatibleapplicationinfo_fuzzer.cpp | 26 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 29 std::string name (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() local 36 std::string applicationName (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() local 58 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 61 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkcolor_fuzzer/ |
H A D | ndkcolor_fuzzer.cpp | 37 void NativeDrawingColorTest(const uint8_t* data, size_t size) in NativeDrawingColorTest() argument 39 if (data == nullptr || size < DATA_MIN_SIZE) { in NativeDrawingColorTest() 44 g_size = size; in NativeDrawingColorTest() 66 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 69 OHOS::Rosen::Drawing::NativeDrawingColorTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsoverdrawcontroller_fuzzer/ |
H A D | rsoverdrawcontroller_fuzzer.cpp | 36 * describe: get data from outside untrusted data(g_data) which size is according to sizeof(T) 55 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 57 if (data == nullptr || size < 0) { in DoSomethingInterestingWithMyAPI() 63 g_size = size; in DoSomethingInterestingWithMyAPI() 74 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 77 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkpatheffect_fuzzer/ |
H A D | patheffect_fuzzer.cpp | 34 void NativePathEffectTest(const uint8_t* data, size_t size) in NativePathEffectTest() argument 36 if (data == nullptr || size < DATA_MIN_SIZE) { in NativePathEffectTest() 41 g_size = size; in NativePathEffectTest() 66 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 69 OHOS::Rosen::Drawing::NativePathEffectTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/graphic/graphic_2d/rosen/modules/effect/effectChain/src/ |
H A D | vertical_blur_filter.cpp | 25 void VerticalBlurFilter::SetValue(const std::string& key, std::shared_ptr<void> value, int size)
in SetValue() argument 27 if (key == "offset" && size > 0) {
in SetValue() 29 for (int i = 0; i < size; i++) {
in SetValue() 33 if (key == "weight" && size > 0) {
in SetValue() 35 for (int i = 0; i < size; i++) {
in SetValue() 83 float tex_offset = 1.0 / float(textureSize(uTexture, 0).y); // gets size of single texel
in GetFragmentShader()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkmemorystream_fuzzer/ |
H A D | ndkmemorystream_fuzzer.cpp | 36 void NativeDrawingMemoryStreamTest(const uint8_t* data, size_t size) in NativeDrawingMemoryStreamTest() argument 38 if (data == nullptr || size < DATA_MIN_SIZE) { in NativeDrawingMemoryStreamTest() 43 g_size = size; in NativeDrawingMemoryStreamTest() 71 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 74 OHOS::Rosen::Drawing::NativeDrawingMemoryStreamTest(data, size); in LLVMFuzzerTestOneInput()
|